yes, i would hate having to DIY formatted output [redirection as well, thank the lord for vsprintf...]...
cout
printf()
Either
Neither
yes, i would hate having to DIY formatted output [redirection as well, thank the lord for vsprintf...]...
hasafraggin shizigishin oppashigger...
Hmm, printf() benches faster than cout on mine. (mingw32) I think the moral to this story is, that nobody really cares what you use as long as you are comfortable using it.According to my compiler and profiler, cout is on average 5.75 milliseconds faster than printf. So much for that argument...
Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/
i prefer cout for its simplicity, but its only there when im in c++.
cout has quite a bit of overhead that printf doesn't have. And needless to say cout adds quite a bit of size to a file. I actually tend to use both a lot. I go with printf. In terms of ease I'd say that it is an undoubted tie. When it comes to speed, like I said cout has quite a bit of overhead. I found myself using sprintf more than both since I program windows most of the time.
I don't really have a favorite...they both get the job done. Unless your going to print and entire novel to the screen, speeds not much of an issue. If I had to choose one over the other I'd go with cout because its a little easier to use.