Hello all,
I have been trying to use swtich cases in conditions but it won't work
what I mean is like this;
do{
cout<<"Enter a valid number";
cin>>number;
switch(number)
{
case 0: bla bla
break;
case 1: bla bla
break;
case default: cout<<"re-enter";
}
}while(defalut);
if that can never happen .. what is a good effcient way of accomplishing the same task
Thanks in advance