0
pretest loop
is there any pre test loop with char(s) as its condition. the code only running when certain char is put into.example the char is 'c' and 'd' only.so if you put any char other that it will get out of the loop. TOTAL NEWBIE HERE. THANK YOU :)
3 odpowiedzi
0
while(cin>>s){
if(s=='c' || s=='d'){
//Code
}else break;
}
0
Not char 's' but a few char as my condition
0
Btw thanks alejandro,i learn something new