(Urgent)What STDIN and STDOUT mean in c++ ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

(Urgent)What STDIN and STDOUT mean in c++ ?

for example : Lets say to find Nth term of Fibonacci series. If someone say "The value of N should be read from STDIN and the program should write value to STDOUT. I think : cin>>N; cout<<Nth term; Correct ; If not help me understand.

15th Jun 2019, 1:11 PM
Aditya Kumar
Aditya Kumar - avatar
6 Réponses
+ 5
Basically, what you think is what they mean. Read from input, write to console.
15th Jun 2019, 1:18 PM
HonFu
HonFu - avatar
+ 5
I don't know what is the source of that task (for example hackerrank.com?), so it would be hard for me to tell. But from what you wrote, cin and cout seem like the way to go.
15th Jun 2019, 2:56 PM
HonFu
HonFu - avatar
+ 5
Stdin -> standard input Stdout -> standard output I think sites like hackerrank uses this terms if their challenges can be solved in different languages. (C++ has other terms for stdin/stdout than java or python)
15th Jun 2019, 4:10 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Thanks
15th Jun 2019, 3:09 PM
Aditya Kumar
Aditya Kumar - avatar
+ 2
Yeah it's for a similar type of challenge.
15th Jun 2019, 5:30 PM
Aditya Kumar
Aditya Kumar - avatar
+ 1
Is there anything more that I need to know?
15th Jun 2019, 1:33 PM
Aditya Kumar
Aditya Kumar - avatar