网站首页 站内搜索

搜索结果

查询Tags标签: printfX,共有 1条记录
  • variadic template(二)

    重写 print 函数#include<iostream> using namespace std;void printfX(const char *s) {while (*s){if (*s == % && *(++s) != %)throw "invalid format string: missing arguments";std::cout << *s++;} }template<typename T, type…

    2022/1/28 23:07:37 人评论 次浏览
扫一扫关注最新编程教程