摘要: 重写 print 函数 #include<iostream> using namespace std; void printfX(const char *s) { while (*s) { if (*s == '%' && *(++s) != '%') throw "invalid format s 阅读全文
posted @ 2022-01-28 22:24 王清河 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 使用可变参数模板重写print #include<iostream> #include<bitset> using namespace std; void printX() { } template<typename T, typename... Types> void printX(const T 阅读全文
posted @ 2022-01-28 21:17 王清河 阅读(35) 评论(0) 推荐(0) 编辑