hey all, I am really new to computer programing. I have to take an intro to C++ course in order to graduate. We have recently been introduced to "getline" however, for the assignment my output keeps coming up as blank.
cout << "Please enter your name (first and last name order): ";
cin >> fullname1;
cout << "===> Welcome, ";
getline(cin, fullname1);
cout << endl;
cout <<endl;
cout << "Enter a loan amount: ";
return 0;
}
this is what it looks line when the program runs:
Please enter your name (first and last name order): Grace Hopper
===> Welcome,
Enter a loan amount:
RUN FINISHED; exit value 0; real time: 4s; user: 0ms; system: 0ms
as you can see, the name is not showing up after "welcome,"