For some reason my header doesn't include my screen clear function please help!!!!!!!!Attachment 10773
Printable View
For some reason my header doesn't include my screen clear function please help!!!!!!!!Attachment 10773
Clearing the screen is compiler specific. Look in the documentation for your compiler and see if it has one. If it doesn't, write a bunch of newlines until the stuff on the screen goes away.
Quzah.
I'm using Xcode would u know how to check that????
You could always try a search engine: xcode clear screen and 10 seconds tells me that it's not yet implemented, and as such, my suggestion for writing out a bunch of newlines is your best bet.
Quzah.
Which screen? Visual C++ is intended for developing Windows
application, which have windows & dialogs, not screens...
It can also be used to write console application (like DOS programs),
where there are several different ways to clear the screen, the easiest of
which is system("cls");
Incorrect. Visual C++ is Microsoft's implementation of the C++ standard, along with their own enhancements (such as MFC).
It is not intended to be "just" a tool for developing GUI applications. It is a tool to encapsulate the entire C++ language and all of its possibilities.
Just a note, but this is Windows specific, and it's also a security risk (to use system), and it's slow.Quote:
It can also be used to write console application (like DOS programs), where there are several different ways to clear the screen, the easiest of which is system("cls");
If you intend to limit yourself to Windows, there are proper APIs to clear the console screen.
should work.Code:system("clear");
With what header???
Look it up. Your IDE has a help file, use it. Or use google.