0
In c++ I need to run the loop continuously until I type a particular alphabet or symbol. Is there any function for this?
Iam trying a car game.
4 Antworten
0
Use such types of condition
If(your function if this returning value == your aplhabet)
Print statements
Else do something what u want to do
0
Problem is, the loop will stop to get input but I want it to run until not a specific alphabet but 3 to 4 alphabets. U know that 1 for pause option 1for left side etc. It's like temple run😅
0
Make infinite loop and count these symbols or whatever, if you get specific number, break out of the loop:
while(true){
if(condition==true) count++;
if(count==4) break;
}
Or just chceck that count as while condition:
while(count<4)