What are the ways to pause console page after run in C++?
I mean I want to pause and stop the console page after run a program in C++ in order to analyze outputs , so please explain how can I pause the program after run it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joe WilsonPosted Jan 1, 2015, 2:47 PM
Graph G(nodes.size(), false);
for(nit = nodes.begin(); nit != nodes.end(); nit++)
{
G.insert(nit->file1, nit->file2, nit->f);;
}
cout << endl << "The graph contains" << endl << endl;
G.show();
std::getchar();
Michal HabalcikPosted Jan 1, 2015, 2:14 PM
Joe WilsonPosted Jan 1, 2015, 2:06 PM
Michal HabalcikPosted Jan 1, 2015, 1:41 PM
getchar();