[LC++]Default Arguments
Paul M Foster
paulf at quillandmouse.com
Sat May 11 15:23:05 UTC 2002
On Sat, May 11, 2002 at 01:56:12AM +0200, Carlo Wood wrote:
> On Thu, May 09, 2002 at 09:02:48PM -0400, Jack Lloyd wrote:
> > #include <stdio.h>
>
> #include <iostream>
>
> > void foo() { printf("%d\n", x->foo); }
>
> void foo() { std::cout << x->foo << '\n'; }
>
>
> Don't teach the newbies here wrong things :p
>
In that case, shouldn't it be:
void foo() { std::cout << x->foo << endl; }
;-}
Paul
More information about the tuxCPProgramming
mailing list