Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

iostream vs. stdio

Name: Anonymous 2007-11-22 14:09

so, I've got EXPERT PROGRAMMERS telling me to use printf instead of cout in c++, ok but why? what is the difference (in b4 stream)

Name: Anonymous 2007-11-22 20:43

>>16
I actually haven't measured it, but I imagine cout is faster, or rather, has the potential to be faster. because printf interprets the format string, the cout stuff is determined at compile time.

Ok, yes, it's not a huge overhead. I'm a moron, forget it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List