+ 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?
4 Respostas
+ 1
Well, you could separate your inputs with a space, or read from a file.
+ 1
I don't think so.
I think user inputs are simply piped to stdin of the program.
0
It will take all required inputs only ones..
All should you specify with a space, separating..
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