+ 2
Why does the program ask me only one time to enter the value in a loop?
int num = 1; int number; while (num <= 5) { cin >> number; num++; } PS: That code was taken from the loop lesson
5 ответов
+ 11
Because loops and user input doesn't work well for Code Playground, which takes user input prior to code compilation. For the best learning experience, it is still advised for learners to set up a desktop IDE and compiler.
+ 8
I've also heard of CppDroid, apart from @Pierre's* suggestion, but never tested it myself.
+ 3
Ty, I will try it
+ 2
Thanks, you clarified this to me, but is there a good program for writing cpp code on phones and tablets?
+ 1
If you have an android phone get DroidEdit. It's what I use to code when I'm on the go.
There's a free version and a paid version.
https://play.google.com/store/apps/details?id=com.aor.droidedit&hl=en