Wait for key press after printing to console

by ixmx


#include <conio.h>
 
int _tmain(int argc, _TCHAR* argv[])
 
{
 
	....
 
	....
 
	printf("press a key to end\n");
 
	_getch();
 
	return 0;
 
}
 
or
cout << "Press Enter...";
cin.get();
Advertisements