3: Iostream (std::cout << x) is better than printf
I don't think you realize what the difference between
iostream and
printf is.
printf is for the insertion of variables into a line of text, there is no "better" or "worse." In this scenario,
printf would be an improper invocation because there is no variable to insert.
cout is not inherently better because it doesn't perform the extra steps of variable insertion, it's actually quite inferior if you're going to be attempting this.
"sorry, I had to!"