windows - Console pause in C++? -


in c# can cause console wait character input (which useful being able see last outputs of console before program exits). beginner in c++, i'm not sure equivalent is. there one?

the simplest way simply:

std::cin.get(); 

you can print "press key continue..." before that. people tell about

system("pause"); 

but don't use it. it's not portable.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -