Ok, I'm writing a program that reads the age from someone and decides if they're old enough to receive social security, i HAVE to use 2 functions, one for the age and one to do the computation and display. THe program on below looks correct for me but when i execute nothing pops up on the screen, BTW im using VC++ 6 so all i see is the black screen with "press any key to continue" i'm so frustrated and can't move on if i dont figure this thing out, thanks allot...sorry if the code is a mess but i don't know how to use that thing yet to put code on it
#include <iostream.h>
int promptAge();
void socialAge(int);
int main()
{
int age;
int promptAge();
void socialAge(int age);
return 0;
}
//************************************************** *
int promptAge()
{
int age;
cout << "Please enter your age to decide if you are eligible for SS " << endl ;
cin >> age;
return age;
}
/************************************************** *
void socialAge(int age)
{
if(age >= 62)
cout << "You are old enough to receive SS";
else
cout << "Your are not old enough to receive SS";
}