+ 7
[SOLVED] Which is better? #include <iostream> or #include <cstdio>?
on sololearn i learned to use iostream. but on my school course, the guy uses cstdio. so I'm confused about which one I should use, if not both.
11 odpowiedzi
+ 5
you can use either depending on which you prefer, regardless, input and output streams are easier and handier to work with, most people that use cstdio are just used to C
+ 8
hinanawi afaik?
+ 7
hinanawi ok thanks for your answers.
+ 7
Tind really i didn't know that
+ 6
hinanawi so...
iostream would be easier for me because I haven't learned C yet.
+ 3
LONGTIE👔 yes, afaik in general it's better because of some data width specifier stuff or whatever, not to mention more readable and flushes automatically with "endl"
+ 2
the meaning if <iostream> is input/output standard stream ,so iostream makes input and output easily...
+ 1
LONGTIE👔 "afaik" stands for "as far as i know"
0
#include <iostream>
is better to me o