cout<<"[A]Resident Citizen"<<endl<<"[B]Nonresident Citizens"<<endl<<"[C]Resident Aliens"<<endl<<"[D]Nonresident aliens engaged in trade or business"<<endl;
cout<<"Choose where you are classified:";
cin>>clas;
switch (clas)
{
case 'A':
case 'a':
tax();
break;
case 'B':
case 'b':
tax();
break;
case 'C':
case 'c':
tax();
break;
case 'D':
case 'd':
tax();
break;
You need to explicitly describe the problem you're having with the program rather than leave us guessing what your issue is and use the code tags to post your code. Function main must return an int: int main(). Also missing return 0; Also reevaluate your switch statement, it's a bit pointless they way it's written as ultimately a-d will lead to a function call to tax(), unless you plan on adding functions specific to each selection.