Is this the appropiate way to using the switch structure im having problems, sending it to an outfile char User_input;
switch (User_Input)
{
case 'short'
outfile << setw(6) << Band_Name << setw(6)<< Title << endl;
break;
case 'medium'
outfile << setw(6) << Band_Name << setw(6)<< Title << setw(6) << number_Of_Tracks << endl;
break;
case 'long'
outfile << setw(6)<< Band_Name << setw(6) << Title << setw(6) << number_Of_Tracks << setw(6)<< Total_Time
<< setw(6)<< Cost << endl;
break;
}
system ("Pause");
return Exit_SUCESS;
}
2007-03-11
15:31:43
·
4 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
Thanks you guys rock! :)
2007-03-11
16:03:36 ·
update #1