A quickly repeating loop

How would you guys suggest I create a loop that would repeat itself many times a second? Trying to do extremely basic graphics with a grid and system("cls") every time I run a command, but it still looks very jumpy. Any suggestions? Note: I realize system calls are evil. Please suggest a way to get rid of this too, if you can!
Duoas did a better job the I ever could: http://www.cplusplus.com/articles/4z18T05o/
Topic archived. No new replies allowed.