Quote (SelfTaught @ Jan 28 2013 09:54pm)
Code
std::string business_name;
std::string answer;
double gallon_size;
do
{
std::cout << "Enter the name of your business: ";
std::cin >> business_name;
std::cout << "Enter the required tank size in gallons: ";
std::cin >> gallon_size;
std::cout << "Start over?("yes / no");
std::cin >> answer;
}while(answer.compare('"yes") == 0);
thank you for using a function that actually handles newlines instead of leaving them in the buffer which has to be cleared manually.