They are called elipsis, and they mean that a function can take an indefinite number of parameters. Your function could probably be called like this:
abc( "foo", 0 ); abc( "foo", "bar", 0 );
There should be a pointer to the end of the list. This can be done using the first parameter as the printf ion (format string 0 or special delimiter, zero in the example above.
Functions with a variable number of parameters are considered bad form in C ++, since no type checks or user conversions can be performed on parameters.
anon Mar 01 '09 at 12:37 2009-03-01 12:37
source share