Hi,
I am trying to run this code, but after the program runs, it is never asking me to enter something, instead, it just finishes.
#include <iostream>
#include <string>
using namespace std;
int main () {
string str;
cout << "Please enter full name: ";
getline (cin,str);
cout << "Thank you, " << str << ".\n";
}
The output is this:-
Please enter full name: Thank you, .
Press any key to continue . . .
Thanks