Hi, I've been trying to make a program where you have to log in with username and password, to be able to use a calculator, made with a switch function. What I have been trying to do, is looping the calculator, so that it returns after getting an answer (return so that you can start a new calculation)
char exit = 'a';
while(true)//Infinite loop
{
//Calculator here
std::cout << "Do you wish to exit?\n";
std::cin >> exit;
if(exit == 'y') //If the user wants to exit.
{
break;//We break out of the loop.
}
}