I typed up the hello world tutorial, and remembered that as soon as i hit "compile and run", the command line window would pop up for a split second and then close again (seeing as it has finished what it has done)
i remembered that i used to use a pause command of some kind. i tried
system(PAUSE);
but this didnt work.
My computing teacher suggested i put in an endless loop (which sounds pretty stupid and inneficient).
Does anyone know the pause command im looking for? i remember it said "please press enter to continue"

New Topic/Question
This topic is locked



MultiQuote








|