0

printf or cout, what's the difference?

helpme

17th Mar 2017, 9:15 AM
Gustavo Honorato
Gustavo Honorato - avatar
4 odpowiedzi
+ 18
printf : C cout : C++
17th Mar 2017, 12:19 PM
Hatsy Rei
Hatsy Rei - avatar
+ 9
Another difference could be that printf is a function while cout is an object.
17th Mar 2017, 4:59 PM
Saumya
Saumya - avatar
+ 7
printf is PRINT FORMAT the ASSHOLE print! First Argument must be only char or string The following is put the value inside the format of first parameter cout use sign << to access to function cout easier so print with cout is a better way Sometime printf use pointer to print.Idk the reason. (What da heck did I just complain -_-?)
17th Mar 2017, 9:45 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
@Saumya Heyyyy!!! True!
17th Mar 2017, 5:00 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar