ComputingGrade.cpp
// Checks for whether an integer is <= 0

Checks for whether an integer is <= 0
Checks for whether an integer is < = 0
void computingSession::check4PosInt(std::istream &input, int &entityNum){
    checkCinInt(input, entityNum);
    while (entityNum <= 0){
        std::cout << "That's not possible! I have a feeling that was a mistake & you'd like to try again: ";
        std::cin >> entityNum;
        std::cout << std::endl;
        checkCinInt(input, entityNum);
    }
}
void computingSession :: check4PosInt ( std :: istream & input , int & entityNum ) { checkCinInt ( input , entityNum ) ; while ( entityNum <= 0 ) { std :: cout << " " ; std :: cin >> entityNum ; std :: cout << std :: endl ; checkCinInt ( input , entityNum ) ; } }
Checks for whether an integer is <= 0
Checks for whether an integer is < = 0