[Solved] How to force getline() to input one line at a time [duplicate]
[ad_1] int n; cin >> n; cin.ignore(); // are you sure you tried this? for(int i = 0; i < n; i++) { string input; getline(cin, input); cout << “Line Entered: ” << input << endl; } 0 [ad_2] solved How to force getline() to input one line at a time [duplicate]