I recently switched to xcode from microsoft visual C++ so:
how do you clear the screen
how do you change the screen color
and how do you make a pause (before i used
#include <ctime>
and
clock_t now;
now = clock();
while( clock() < now+2000 ) {}
You can pause using Sleep() on Windows, or sleep() on OS X or any other POSIX. The difference is the parameter in Windows is in milliseconds, rather than seconds on POSIX.
I am playing with io manipulators, though it's in progress.
not finished it yet. may be better ways to do it.
may be of use, no warranty.
so I can do stuff like this...