ok i'm going to post the code then
Code:int ChooseFromMenu() { while ((DisplayMenu() && !(cin >> A ) || (cin.good() && (A < 1 || A > 9))) { cout << "\nInvalid input!\n"<<endl; cin.clear(); cin.ignore(1000, '\n'); } } //getting error on this brace
getting error on A undeclared if I declare it before while , I get error on DisplayMenu which is void . and Cant remove chooseFromMenu also because its the function any idea how can we fix it?? thx