Discussion in 'OT Technology' started by Joe_Cool, Jan 29, 2005.
Do you prefer ease of use, or flexibility and power?
I generally use cout.
we only used cout in school, and I never used console apps outside of the classroom, so I vote cout, lol.
cout along with iomanip can be every bit as flexible as printf. But the more formatting you need, the more cumbersome cout gets. printf is generally easier to use when there's lots of formatting.
Never do anything in unix, eh?
The reason I brought it up is that I wrote a little program to generate math tests for my daughter. And printf was so much better for formatting the problems on the page.
for simple output, I generally use cout, but for anything where I need formatting, I always use printf.
yes, but it is all in bash.
printf for the win
printf for all the geeks who voted and didn't want to reply
I gotta go with printf
i made the transition recently from cout to printf() simply because i had to use scanf() and its derivatives for my file loader. it is hella better