How do i make it to where if i dont enter a valid command, my program does nothing?
emample...
1 2 3 4 5 6 7 8 9 10
|
cin>>Action;
if(Action=='1')
{
cout<<"Confirmed"<<endl;
}
if(Action=='2')
{
cout<<"Denied"<<endl;
}
\\Code for doing nothing here.
|
Last edited on
yes but how do i make it to where it doesnt continue the code until you enter a valid command?