int main()
{
system("color C8");
while (menu == 1||menu == 2||menu == 3||menu == 0)
{
cout << "Welcome to TeacherHelp" << endl;
cout << "This Program will do many things to help teachers." << endl;
cout << "Write the number of your choice." << endl;
cout << "[1]Calculator" << endl;
cout << "[2]Average Grades" << endl;
cout << "[3]Note" << endl;
cout << note << endl;
cin >> menu;
std::cin.ignore();
if (menu != 1 && menu != 2 && menu != 3 && menu != 0)
{
cout << "This is not a valid Input" << endl;
cin >> menu;
}
switch(menu)
{
case 1:
int calculator();
break;
case 2:
int grades();
break;
case 3:
notes();
break;
}
}
return 2182;
}
I don't mean to be rude, just look at the difference between the two and figure out why they don't work the same. I can tell you the answer or perhaps you learn something.
i get it now i have contradicting things i said if menu =1 or menu = 2 or menu=3 or menu = 4 do this but then i said if its not ask for menu again so itll keep going