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
Post a Comment