×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C++
Posted by: James Miller
Added: Sep 29, 2018 9:55 PM
Modified: Sep 29, 2018 9:55 PM
Views: 3434
Tags: cin ignore
  1. cout << "Enter a new first name: ";
  2. cin.ignore (std::numeric_limits<std::streamsize>::max(), '\n');
  3. getline(cin, fn);