Hello, i have a question for my C++ program.
void GasPump::setHighGal(int gallons){
gallons = 0;
}
void GasPump::setMedGal(int gallons){
gallons = 0;
}
void GasPump::setLow(int gallons){
gallons = 0;
}
Those functions will sets the quantity of gas in the indicated tank to parameter value,resets total cash for that type of gas to 0
So is that mean I should initialize gallons to 0? I don't understand what it does. Thanks