ComputingGrade.cpp
// Checks for whether a given integer input is 1 or 2

Checks for whether a given integer input is 1 or 2
Checks for whether a given integer input is 1 or 2
void computingSession::checkSetupNum(std::istream &input, int &setupNum){
    while (setupNum != 1 && setupNum != 2){
        input.clear();
        input.ignore();
        std::cout << "No, seriously, please only enter \"1\" or \"2\": ";
        input >> setupNum;
    }
}
void computingSession :: checkSetupNum ( std :: istream & input , int & setupNum ) { while ( setupNum != 1 && setupNum != 2 ) { input . clear ( ) ; input . ignore ( ) ; std :: cout << " \" \" \" \" " ; input >> setupNum ; } }
Checks for whether a given integer input is 1 or 2
Checks for whether a given integer input is 1 or 2