+ 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.

5th Sep 2018, 7:17 PM
LONGTIE👔
LONGTIE👔 - avatar
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
5th Sep 2018, 7:34 PM
hinanawi
hinanawi - avatar
+ 8
hinanawi afaik?
5th Sep 2018, 7:39 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 7
hinanawi ok thanks for your answers.
5th Sep 2018, 7:41 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 7
Tind really i didn't know that
5th Sep 2018, 8:07 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 6
hinanawi so... iostream would be easier for me because I haven't learned C yet.
5th Sep 2018, 7:38 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 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"
5th Sep 2018, 7:39 PM
hinanawi
hinanawi - avatar
+ 2
the meaning if <iostream> is input/output standard stream ,so iostream makes input and output easily...
14th Sep 2018, 10:27 AM
Albert Whittaker :Shaken To Code
Albert Whittaker :Shaken To Code - avatar
+ 1
LONGTIE👔 "afaik" stands for "as far as i know"
5th Sep 2018, 7:40 PM
hinanawi
hinanawi - avatar
0
#include <iostream> is better to me o
5th Sep 2018, 10:02 PM
Rekiyah Yusuf