Advertisement

Need help with C++

Started by December 06, 2001 06:32 PM
9 comments, last by bosscheese 23 years, 2 months ago
quote:
Original post by Relay30
printf ("%d \n,a"); *\ whats the f mean?


The f is for format. It''s just like your old ''print using''.


quote:
Original post by python_regious
By the sounds of it, you want to check for a keypress each game loop. So functions like cin, scanf and all of those are of no use.



cin.peek() returns EOF if there is nothing to read, without blocking.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement