0
Write input before the program ask for it?
I'm writing a program in this app but when i run it the compiler ask me to put the input at the start of the program, the problem is that i put my "cin" at the end of the program.
6 Answers
+ 3
That's just how Code Playground works, it collects all the information needed (code, inputs) at the beginning, then send it to SL server to process/compile, the inputs will be fed to to the code in sequence, you make separate inputs by entering the values sequentially, each input is separated by a carriage return (Enter).
For example, if your code requires name and age, you'd be entering the inputs as follows (on input request dialog):
name
age
Hth, cmiiw
+ 2
@caccapupĂș
You may try using CppDroid. Its a free C++ Compiler.
+ 2
To add to what @Kinshuk Vasisht noted, here's the link to CppDroid:
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.cppdroid
0
Oh ty, do u know how can i resolve it? Cause my program gives out put for every input and if the output changes u have to change the input.
0
And do you know any other compiler for cellular that dpnt have this problem?