/////// File: optarg.C /////// #include // showing various optional argument settings int d = 9; class Foo { public: int bar(int a, int b, int c); enum {R, S, T}; static int d; }; // following d is Foo::d not ::d int Foo::bar(int a, int b = d, int c = R); int Foo::d = 8; int io_func(iostream& io_obj = ::cin, int io_dir = ios::in);