C++ Standard Input Press enter to continue

Description

C++ Standard Input Press enter to continue

#include <cstdio> 
#include <cstdlib> 
#include <iostream> 
using namespace std; 

int main(int nNumberofArgs, char* pszArgs[]) 
{ 
     cout<< "Press Enter to continue..." <<endl; 
     cin.ignore(10, '\n'); 
     cin.get(); /*from   w w w .j a v  a 2  s.  c om*/
     return 0;  
}



PreviousNext

Related