I have never seen an example of this, but I need to call a function or another bool from inside a bool! If anyone knows how this might go, please let me know. P.S. This website is awsome! Thanks, Paul
//something like this, however this is not working...
bool getEmployeeData(int ID)
{
cout << "Enter employee ID: " << endl;
cin >> ID;
if (ID >= 0)
{
return true;
bool isValidStatus;
}
else
{
cout << "*** Program Terminated ***" << endl;
exit (0);
return false;
}
}
bool isValidStatus (int status)
{
cout << "Enter payroll status: " << endl;
cin >> status;
if (status == 's' || status == 'S' || status == 'c' || status == 'C' || status == 'h' || status == 'H')
{
cout << status;
return tryAgain;
}
else
{
bool tryAgain (int quit);
return false;
}
}