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.

20th Oct 2017, 11:04 AM
caccapupĂș
caccapupĂș - avatar
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
20th Oct 2017, 11:23 AM
Ipang
+ 2
@caccapupĂș You may try using CppDroid. Its a free C++ Compiler.
20th Oct 2017, 3:31 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 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
20th Oct 2017, 3:46 PM
Ipang
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.
20th Oct 2017, 11:32 AM
caccapupĂș
caccapupĂș - avatar
0
And do you know any other compiler for cellular that dpnt have this problem?
20th Oct 2017, 12:24 PM
caccapupĂș
caccapupĂș - avatar