Question: what is the difference between printf and cout?
Answer: printf() is a function that send a formated string to stdout, you can do fprintf() to send a formated string to a file or some other of the same family. They all are part of the C standard. cout is an addition of C++ which aims to take the stdout more like a stream, that is why you see "cout << string:".