Hi there. I'm pretty beginner at functions, and I would like to know if it's possible to have a parameter of a function that takes multiple arguments.
Like in Python, you could have
>>> def a(*args):
print args
>>> a(1, 2, 3, 4, 5, 6)
(1, 2, 3, 4, 5, 6)
Where the parameter *args takes all of the numbers I entered, and puts them into a tuple (immutable list). Can one do this in C++ (most likely yes)? If so, may someone teach me how?