How do you clear screens?

Nov 18, 2011 at 2:45pm
I would like to clear a screen without using the System("CLS") code. Ive heard that people can replace the "CLS" command with something malicious.

Also,the size limit of the 'integers',can you change that somehow? (exept using long int.)

Any replies are appreciated.
Nov 18, 2011 at 4:18pm
The C language has no inherent concept of a display screen so if you need to "clear" your display start learning a GUI package. http://cplusplus.com/forum/beginner/1988/ EDIT: oop, wrong link, see Moschops post below...

Upgrade to a 64 bit OS??? http://stackoverflow.com/questions/589575/size-of-int-long-etc
Last edited on Nov 18, 2011 at 4:26pm
Nov 18, 2011 at 4:23pm
Ive heard that people can replace the "CLS" command with something malicious.


Anything you ever do with the system function is rolling the dice and hoping that nobody has put something malicious in place. Here's the local article on screen clearing: http://www.cplusplus.com/articles/4z18T05o/
Last edited on Nov 18, 2011 at 4:23pm
Topic archived. No new replies allowed.