ok i fixed it now guys, sorry about that. i was trying to put the if() statement before the case 3:... i switched it to inside of the case 3: and it worked fine.
Code:cout<<"1) Option-A\n";
cout<<"2) Option-B\n";
cout<<"3) Option-C\n";
cout<<"Selection: ";
int x;
cin>>x;
switch(x){
case 1:
cout<<"You Selected A\n";
break;
case 2:
cout<<"You Selected B\n";
break;
case 3:
cout<<"You Selected C\n";
break;
}
