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? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

https://code.sololearn.com/c0SNb0WE5ipJ/?ref=app

18th Apr 2020, 12:01 AM
Abubakar Faruk Umar
Abubakar Faruk Umar - avatar
5 Answers
+ 3
Do for example: void play_game(){ int answer = 6; Then input: 1 2 5 6 0 All ok Run your program on PC
20th Apr 2020, 5:28 AM
UraL
+ 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
20th Apr 2020, 6:25 AM
Ipang
+ 2
There is a problem to do input in SoloLearn
20th Apr 2020, 5:29 AM
UraL
+ 2
Wow..... That was great help.... Thanks a lot
20th Apr 2020, 6:33 AM
Abubakar Faruk Umar
Abubakar Faruk Umar - avatar
+ 1
Ural thanks so much.... My code runs fine on pc but doing input in sololearn is D issue.... Thanks for d tip
20th Apr 2020, 6:01 AM
Abubakar Faruk Umar
Abubakar Faruk Umar - avatar