This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

printf VS cout


Hi
I'm a student from belgium at the Faculté Polytechnique de Mons.
I have some C++ courses (They call it C+ because we haven't learn OOP :( )...
So here's my problem :
They say that with C++, the printf() function must not be used at all, that 
cout is to be used. they say that printf() is only for C programming.

On a personnal project, I use printf() a lot even if it is in C++.

So, is it true ? Do I have to use cout instead of printf in C++ code ?

Thanks.

Detlev.

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]