printf and cout.... :/

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

printf and cout.... :/

Post by ayu »

What is the difference? apart from being found in different libraries
"The best place to hide a tree, is in a forest"

alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

Post by alien100 »

printf = C
cout = C++

imo in C++ everytin has a reason
[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
17
Location: 127.0.0.1

Post by pseudo_opcode »

alien is right, in C, printf() is implemented as a method or function, whatever you call it for standard output, in C++ it is implemented as a stream, lol in iostream(input/output stream) (remember iostream.h? :D )

Apart from that they are used differently

Post Reply