随笔分类 - C/C++
摘要:http://www.jianshu.com/p/35f26eea6cb3 Effective C++中第21个原则,因为引用是要指向某已存在的对象的,但如果该对象某一瞬间突然消失了,这个引用被架空了,那就出错了。为了证实这一点作者举了一个有理数相乘的例子。有这个一个有理数类,其中有一个有理数相乘的
阅读全文
摘要:转载:http://www.xuebuyuan.com/zh-tw/96621.html #include<stdio.h> 定义函数 int sscanf (const char *str,const char * format,........); 函数说明sscanf()会将参数str的字元串
阅读全文
摘要:#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...
阅读全文
摘要:``` include unsigned char send_data_raw[10]={0xfe,0x0a,0x22,0x33,0x0a,0xef}; unsigned char send_data[16]={0xfe,0x0a,0x22,0x33,0x0a,0xef,0x00,0x00,0x00
阅读全文

浙公网安备 33010602011771号