Is it possible to call a void function from another void function?
will this work?
mainMenu()
{
int input;
cout<<"\t\t Main Menu \n\n";
cout<<"\t\t 1. Student Details \n";
cout<<"\t\t 2. Payment Details \n";
cout<<"\t\t 3.Exit \n\n";
cout<<"\t\t Select 1/2/3 : ";
cin>>input;
if(input==1)
{
void studentDetails();
}
if(input==2)
{
void printPaidStudents();
}
if(input==3)
{
return -1;
}
}
i wrote the voide studentDetails function too...
but the output is not there...
wats wrong in this?