+ 2
Is it possible in C++ to show a message before input a value in a variable?
16 Answers
+ 15
it is working. ..but not the same way other Compiler do. ..for security reasons
+ 15
solo learn playground take your code and inputs and send both of them in private server to be compiled over cloud ...then the server response and send you the output !
in one single operation that is why you should add your inputs before running the code
+ 14
you can type
cout << "Enter the year ";
cin >> year;
in codeblocks or any c++ IDE
+ 14
they shouldn't create an open channel for any user with their servers or they will be hacked !
+ 14
you are right 👌
+ 13
@Fuyuka +1
+ 13
yes
+ 12
can you give an example?
+ 11
Not possible in code playground(SoloLearn)
U can do that in real compiler(not online one)
+ 2
This is power of coding.. haha...
+ 2
So actually is not a real-time compiling.
+ 2
And I guess with this way can keep the app light.
+ 1
Like you have to input a year and you want to show a message "Enter a year" but you want to show it before input the year.
+ 1
Security reasons?
0
Hmmm.. This is what I thought. How is this possible in general?
0
So cout actually is not working right in sololearn, right?