void extEmployeeType::yearsFromRetirement(int age)
if (age == 65)
cout << "The employee is " << diff << " years from retirement." << endl;
else if (age < 65)
yearsFromRetirement(age + 1);
yearsFromRetirement(age - 1);
int main(int argc, char *argv)
cout << "Enter the age for the employee -> ";
cin >> age;
^have no clue what do to with those two lines as far as declaring.
cout << "Enter the age for the employee -> "; -- this line is correct.
cin >> age; -- not sure if that's correct.
^need alot of help with these lines.
this program lets you input an age then if the age is however many years less then 65, it output a retirement message.. years before... and 65+.. years after retirement. I have no clue what to do in the main function to call it.
Someone please help me. I'm about feedup with it. My teacher is telling me it's like my other program that's similar to this but that deals with a clock and this doesn't. I don't know how to get it to accept a "person's" age. Help please!