Why do I have to press enter twice after I've entered a name? Is this something that's exclusive to Visual C++ 6.0?Code:#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cout << "Enter a name" << endl;
getline(cin, name);
cout << "The name you entered is "
<< name << endl;
return 0;
}