Hello Everyone,
I was wondering if anyone could show me how to call a function from inside a boolean statement. Something like the example below. I know it isn't right and was wondering if anyone could give me a hint or an example of coding it correctly. Thank you, hill0ster! :lol:
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;
}
}