How can I write a function that accepts a variable number of arguments? Is this possible, how?
in c++11 you can do:
void foo(const std::list & myArguments) { //do whatever you want, with all the convenience of lists } foo({"arg1","arg2"});
list initializer FTW!