i need to help for thise program

#include <iostream>
using namespace std;
int main()
{
double a;
cout<<"Enter your numbers:\t ";
cin >>a;
switch(a)
{
case 'Fail':cout<<"Fail";
break;
case 'Bad':cout<<" Bad ";
break;
case 'Good':cout<<" Good ";
break;
case 'VGood':cout<<"vgood";
break;
case 'excellent':cout<<" excellent ";
break;
}
cout<<a<< endl ;

system("pause");
return 0;


}
and what is 'Fail' , 'Bad' etc ??????
and what double has whit them ??

what number is this: ??
double 'Fail'

double is number with 7 decimal points like: 34.1234567
and 'Fail' is wrong
it shall be char 'a'
or
string
"Fail"
and it's still not double

I assume u have more code than this
will u please provide complete one and use CODE TAG so others can read your code.
Last edited on
As soon as the code is posted I'll try to help, make sure that you use the code tags too, they're there for this.
Topic archived. No new replies allowed.