why is that like that? i think my program looks right in the void.....but there an error saying expected primary expression before void..expected";"before void..
cout<<endl<<"[1] Single"<<endl<<"[2] Head of the Family"<<endl<<"[3] Married"<<endl;
cout<<"Exemption Status: "<<endl;
cin>> stat;
if (stat==3)
{
dependent();
displayMonths();
return 0;
}
if (stat==2 || stat==1)
{
dependent();
displayMonths();
return 0;
}
void dependent()
{
if(dep=='Y' || dep=='y')
{
cout<<endl<<"How many dependents you have?";
cin>> numdep;
if(numdep>=5)
cout<<"You're not qualified for children exemptions.";
else if(numdep<=4)
cout<<"You're qualified for exemptions.";
}
if(dep=='N' || dep=='n')
cout<<"Youre Not qualified for children exemptions.";
return dependent;
}
void displayMonths()
{
string months[12]={"JANUARY Salary:","FEBRUARY Salary:","MARCH Salary:","APRIL Salary:","MAY Salary:","JUNE Salary:","JULY Salary:","AUGUST Salary:","SEPTEMBER Salary:","OCTOBER Salary:","NOVEMBER Salary:","DECEMBER Salary:"};
int input1[12];
int a=0;
int input2[12];
int b=0;
double total[12];