Posted on 2006-05-06
Hey, how do I write a C++ function named display that takes any number of arguments. The first argument must be an interger. The remaining arguments will be C-style strings (character pointers). The first argument will indicate how many strings the call contains. The function will print the strings on a single line, with arguments seperated by one space. For example, the call
display (2, "abc", "def");
will produce the following output:
You know what I mean?