in this code :
main(){
int z;
while(z!=3)
{
cout<<"\n...............MENU.................\n\n";
cout<<"Enter.....(1)\n";
cout<<"Enter.....(2)\n";
cout<<"Enter.....(3)\n";
cin>>z;
switch(z)
{
//some statement.......
}
break;
case 2:
{
//some statement.......
}
break;
}}
and I don't want to enter 2 unless enter 1
???
help please and thanks

New Topic/Question
Reply




MultiQuote








|