I have visual studio 2010 and when I run a program the command prompt window with the program opens and closes automatically. How can I make the window remain open without running the program from the command prompt.
Code://#include "stdafx.h" was included on the other template #include <iostream> using namespace std; //int _tmain(int argc, _TCHAR* argv[]) was included on the other template int main() { cout <<"she sells sea shells by the seashore"<< endl; cout <<"\nshe"<< endl; cout <<"sells"<< endl; cout <<"sea"<< endl; cout <<"shells"<< endl; cout <<"by"<< endl; cout <<"the"<< endl; cout <<"seashore"<< endl; cout <<"\nshe sells"<< endl; cout <<"sea shells"<< endl; cout <<"by the"<< endl; cout <<"seashore"<< endl; return 0; } /*1. Write on the screen the words she sells sea shells by the seashore (a) all on one line, (b) on seven lines, and (c) inside a box.*/



LinkBack URL
About LinkBacks



