3 Oct
2004
3 Oct
'04
13:04
On Fri, 1 Oct 2004 03:22:07 +0200 Kirk Garvey <zaggy@tiscali.co.uk> wrote:
Hi,
As an experienced 'C' programmer but C++ novice I am wondering what is the best programming practice for standard input/output when programming C++, should one use 'printf()' and 'sprintf()' or 'cout' and 'cin'? Or is it down to personal preference? IMHO, when programming in C++ one should use C++, not C. The same goes for malloc and new. However, there is nothing really wrong with using the C standard IO.
-- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9