How do i get the screen to pause? [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: How to stop C++ console application from exiting immediately? So im learning c++ and i was given this example and i wanted to run it. But i cannot get it to stay up, unless i change it. How do i get Microsoft visual 2010 to keep up the screen when it gets to the end of the program after I release it? #include<iostream> using namespace std; int area(int length, int width); /* function declaration */ /* MAIN