hi .
i'm trying to select a case of choise from a switch option .
if i select a case from a menu for exm. then i want it to go to a new func. that tells the program to open a file .
a part from my prog. :
void do_choice (char ans)
{
switch (ans)
{
case 'A' : print_file (one_star); break ;
case 'B' : print_file (two_star); break ;
case 'C' : print_file (divemaster); break ;
case 'D' : print_file (tech_one); break ;
case 'E' : print_file (tech_two); break ;
case 'F' : print_file (trimix); break ;
case 'Q' : break ;
default : cout << "\n not exist ! try agian ! \n";
}
cout << "\n\n";
}
i have been trying to uplaod a txt file named (one_star) for exm.
which is inside the func. print_file .
but for some reason it doesn't work .
i even tried to leave the inside of the margins empty ,
but then it tells me that print_file has 0 arguments .