0
A guessing game using c++ but due to the output method it's not working as I programmed any ideas on how to make it better?
5 Respostas
+ 3
Do for example:
void play_game(){
int answer = 6;
Then input:
1 2 5 6 0
All ok
Run your program on PC
+ 3
Abubakar Faruk Umar
SoloLearn Playground was not meant to run codes that require interactive input, you can try but you must setup a condition where the code should exit gracefully when no more input is available for further processing.
Read this code to undertand how input works in SoloLearn 👇
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 2
There is a problem to do input in SoloLearn
+ 2
Wow..... That was great help.... Thanks a lot
+ 1
Ural thanks so much.... My code runs fine on pc but doing input in sololearn is D issue.... Thanks for d tip