C++ Error: Type Name is Not Allowed

if(age>59)
    senior(int* pAge);
else
    everyoneElse(int* pAge);

You can’t include the typename when calling a function. Change to:

if(age>59)
    senior(pAge);
else
    everyoneElse(pAge);

Leave a Comment