Posted by Matthew Pratt on 1999-05-03
-- Kukuman <kukuman@xxxxxxxx.xxx> wrote: > Hey all, I'm just learning C++. > > I have seen two commands of writing text to the > screen, being printf and > cout. Which one should I use? They both do the same > thing, but what are > the specifics, such as, one is ANSI C, and so forth? > I always recommend people use printf when programming with C and cout when using C++, as each was designed for its lanuage respectively. Yes printf is ANSI standard, but C++ has only just become an ANSI standard and so most C++ compilers and libs are still a mess. === Matty . http://members.xoom.com/mattpratt/ _--_|\ mattpratt@xxxxx.xxx / \ s3099239@xxxxxxx.xxx.xxx.xx \_.--._/<--Canberra, W2K - The other millenium bug. v Australia _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Previous post | Next post | Timeline | Home