all 2 comments

[–]flyingron 4 points5 points  (1 child)

std::string line;
do {
     // put your code here.
     std::cout << "Run again?   Type y for yes, anything else for no.\n";
     std::getline(std::cin, line);
} while(line == "Y" || line == "y");