Void as a function parameter

Started by
11 comments, last by ETFBlade 20 years, 2 months ago
Er yes, I forgot the part about making it a constructor instead of a normal function.
Advertisement
There''s another solution presented in C++ for Dummies:

void foo(int a, int b, int c);

void foo(int a, int c)
{
foo(a, 0, c);
}
You could perhaps use the Named Parameter Idiom.

[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
Arguing on the internet is like running in the Special Olympics: Even if you win, you're still retarded.[How To Ask Questions|STL Programmer's Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]

This topic is closed to new replies.

Advertisement