摘要: http://www.jianshu.com/p/35f26eea6cb3 Effective C++中第21个原则,因为引用是要指向某已存在的对象的,但如果该对象某一瞬间突然消失了,这个引用被架空了,那就出错了。为了证实这一点作者举了一个有理数相乘的例子。有这个一个有理数类,其中有一个有理数相乘的 阅读全文
posted @ 2017-07-10 08:53 Jarvis_Xu 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.xuebuyuan.com/zh-tw/96621.html #include<stdio.h> 定义函数 int sscanf (const char *str,const char * format,........); 函数说明sscanf()会将参数str的字元串 阅读全文
posted @ 2017-07-10 08:24 Jarvis_Xu 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int CalcHowManyDays(unsigned int Year, unsigned int Month, unsigned int Day, unsigned int *pSumOfDays) { //结构体tm初始化 struct tm begin = { 0 }; st... 阅读全文
posted @ 2017-07-10 08:11 Jarvis_Xu 阅读(538) 评论(0) 推荐(0) 编辑