Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void getLineAndIgnore(){
- string a, d;
- int b;
- getline(cin,a);
- cin >> b;
- cin.ignore();
- getline(cin, d);
- cout << a << endl;
- cout << b << endl;
- cout << d << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement