This code works, but for some reason you have to press enter twice, and that stinks, is there any way not to have to press enter twice?Code:#include <iostream> #include <string> using namespace std; int main(void) { string name; cout << "What is your name?" << endl; getline(cin,name,'\n'); cout << "Your name is " << name << endl; return 0; }