参考链接:https://www.cnblogs.com/marvin-notes/p/4482805.html
// m = 1, n = 2…如果在这里myprint()为类成员函数,则gcc编译后会提示"format argument is not a pointer"的警告
extern void myprint(const char *format,…) attribute((format(printf,1,2)));
// m = 2, n = 3
extern void myprint(short num,const char *format,…) attribute((format(printf,2,3)));