thanks for reply.
i can do clear screen ... system("cls");
Ive had a go this is what I get:
Code:
for (;;)
{
cout << "\nPlease choose a value for e/KT ratio:\n\n(a) e/KT = 20\n\n(b) e/KT = 40\n\nPlease enter a or b:";
cin >> choose;
tolower(choose);
switch (choose)
{
case 'a':
cout << "bye";
break;
case 'b':
cout << "hi";
break;
default:
cout << "Invalid option. Please choose again: ";
}
break;
}
Obviously, this is wrong i can understand why.
I would just like a technique of keeping the initial question in the loop to be kept being answered as long as an invalid option is inputted.
thanks