[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LC++]Default Arguments



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