Ho, I'm having a problem when I run the following code, and enter the
name of the first candidate, after I press enter, the program skips the
chance to enter the second candidate's name. Anybody know a solution?
Thanks.
std::cout << "Please enter the name of the first candidate: ";
std::cin >> NameOne;
std::cout << "Please enter the name of the second candidate: ";
std::cin >> NameTwo;
name of the first candidate, after I press enter, the program skips the
chance to enter the second candidate's name. Anybody know a solution?
Thanks.
std::cout << "Please enter the name of the first candidate: ";
std::cin >> NameOne;
std::cout << "Please enter the name of the second candidate: ";
std::cin >> NameTwo;
Comment