I'm not too sure why you say that int y is uninitialized.
I was also wondering about the endl thing. One tutorial I read used it all the time, othertimes it used \n. The book I'm reading now uses \n and in future efforts I will use \n.
What else could I use besides system ("cls");? Remember, this is only my second program.



LinkBack URL
About LinkBacks



Concerning damage control when it comes to portability, you want to separate any nonportable constructs from the rest of the program so that they are easier to port to different implementations. The most trivial way is to use a separate function to hide the implementation of actually clearing the screen:
CornedBee