+ 1

Whats the difference

Whats the difference between \\ print hello And cout <<“hello”;

13th Jan 2018, 7:16 PM
Thije Enders
Thije Enders - avatar
3 Answers
+ 7
print is more powerful for display somethings, but cout is more convenient and easy to use.
13th Jan 2018, 11:09 PM
Tran Huu Dang
Tran Huu Dang - avatar
+ 3
may be printf() ???
14th Jan 2018, 1:34 AM
UraL
+ 1
print() is a function of the C language cout is an object of class ostream from C++ Both represent the standart output stream
13th Jan 2018, 7:53 PM
Sergei Butchak
Sergei Butchak - avatar