I have a strange problem here. I'm getting 2 strings as input using the code below:
std::string input1, input2;
std::cout<<"Please enter name:";
std::getline(std::cin, input1);
std::cout<<"Address: ";
std::getline(std::cin,input2);
The issue I'm having is that instead of displaying one at a time, both display at once, so the output looks like this:
Please enter name: Address:
As a result neither string is getting any input.
Any ideas what the issue might be?