怪我咯2017-04-17 13:11:33
Since the question is about C++, then
template<typename ...T>
void f(int a, T... t);
Of course that is the case, and then you can access every value in t through simple template metaprogramming techniques.
大家讲道理2017-04-17 13:11:33
The description of the problem is not very clear. I assume you want to know how to obtain the ...
parameter in C language and see how to use va_list
, va_start
and the like.
http://en.cppreference.com/w/cpp/utility/variadic/va_start
http://en.cppreference.com/w/cpp/utility/variadic/va_list