0
What's the deference between printf(); and cout ?
1 Respuesta
+ 2
printf() is the function to print something to the standard output in C. In C++, you do that by sending stuff to the output stream object cout.
C: printf("Hello world!\n");
C++: cout << "Hello world!" << endl;