Press enter to continue - C++ File Stream

C++ examples for File Stream:cin

Description

Press enter to continue

Demo Code

#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 ww. j a v  a  2s.com*/
     return 0;  
}

Result


Related Tutorials