Advertisement
fahimkamal63

Untitled

Apr 7th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. void getLineAndIgnore(){
  2.    
  3.     string a, d;
  4.     int b;
  5.    
  6.     getline(cin,a);
  7.     cin >> b;
  8.     cin.ignore();
  9.     getline(cin, d);
  10.    
  11.     cout << a << endl;
  12.    
  13.     cout << b << endl;
  14.        
  15.     cout << d << endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement