+ 1

C++ delayed input

Is there any chance that my program (in SoloLearn) could take user input and if it is (e.g.) dividable by 2, ask for an other user input? So is it possible to have separate inputs and not just one at the begining where I have to input everything I will need in the future run?

16th Dec 2019, 1:14 PM
Greg D
Greg D - avatar
4 Respuestas
+ 1
Well, you could separate your inputs with a space, or read from a file.
16th Dec 2019, 1:15 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
I don't think so. I think user inputs are simply piped to stdin of the program.
31st Dec 2019, 9:40 PM
Gyorgy Theisz
Gyorgy Theisz - avatar
0
It will take all required inputs only ones.. All should you specify with a space, separating..
16th Dec 2019, 2:04 PM
Jayakrishna 🇮🇳
0
Yes, the question is that are you able to get inputs one after an other and only trigger an std::cin after a certain event
16th Dec 2019, 4:37 PM
Greg D
Greg D - avatar