>>>
ohh no wonder i was like what is this printf i was about to tell him about the cout etc.. but then i didnt know for sure
<<<
printf() is the formatted output statement from the C language. It is included in the ANSI C++ standard, so is valid C++ as well.
Truth be told, I use printf() in test programs when I want formatted output, with printf() if is a simple function call, with cout and all the necesary manipulators etc., the same job can run to several lines of code!