I understand that in CMD console, The Cls command would basically clear the screen. And since all the program I am currently writting is run with the window CMD console. How would I make it so that my program can clear the screen? I tried something like system.cls(); system.clear(); hehe. None of the work.
Yep. I got you guys. It's bad practice, not system portable, and technically not C++ specific.
But for now I am just programming in CMD console. I just need to manipulate the screen a little...hehehe. And it make my menu look good. lolz.
Tinman, if I am correct you wouldn't need any header files. If you are writting your program to run in console, then it simply uses the command available to you on your CMD console. And there are a lot of them, but like Duoas, and PersonJerry pointed out, that is highly bad practice.
He's talking about what to #include so that he can use the system() function. #include <cstdlib>
You can find out what header to include by going to the homepage and typing the name of the function into the search box, selecting it from the top of the page you see next, and looking to the right to see what the header file is.
I've got no problem with using system("PAUSE") as long as people don't start thinking it is good for production code.