变长参数函数调用变长参数函数
#include <iostream>
template <typename... Args>
inline void my_print(const char* format, Args... rest) {
printf(format, rest...);
}
int main(int argc, char* argv[]) {
my_print("my name is:%s, my age is:%d\n", "qiumc", 22);
return 0;
}