printf VS cout
Detlev Casanova
detlev.casanova@gmail.com
Sat Jun 9 11:15:00 GMT 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070609/2a663bd6/attachment.sig>
More information about the Libstdc++
mailing list