[LC++]Default Arguments

Carlo Wood carlo at alinoe.com
Sat May 11 09:57:05 UTC 2002


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

-- 
Carlo Wood <carlo at alinoe.com>




More information about the tuxCPProgramming mailing list