摘要:
#include template T max(T x, T y) { return x > y ? x : y; } //函数模板特化 template const char* max(const char* x, const char* y){ return strcmp(x, y) > 0 ? x : y; } int main(){ std::cout ... 阅读全文
posted @ 2016-12-03 21:11
zzyoucan
阅读(1226)
评论(0)
推荐(0)