随笔 - 390,  文章 - 34,  评论 - 62,  阅读 - 139万
10 2013 档案
模板
摘要:1、定义函数模板 1 #include 2 #include 3 using namespace std; 4 5 template 6 int compare(const T &v1, const T &v2) 7 { 8 if(v1 inline T min(const T&, const T&);3 // error: incorrect placement f inline specifier4 inline template T min(const T&, const T&);定义多个模板形参: 1 /** 2 * 编写一个函数模板,接 阅读全文
posted @ 2013-10-08 17:51 可笑痴狂 阅读(443) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示