+ 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.
6 Respuestas
+ 5
Basically, what you think is what they mean. Read from input, write to console.
+ 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.
+ 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)
+ 2
Thanks
+ 2
Yeah it's for a similar type of challenge.
+ 1
Is there anything more that I need to know?