For some reason the code above cuts off the first character entered.Code:while(true){
string input = "";
cin.get();
getline(cin, input, '\n');
cout << "NAME: " << input << endl;
}
Example:
(Input)
Bill
Tim
John
(Output)
ill
Tim
John
Could someone explain to me why this is and how I may go about fixing it?

