上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
摘要: i++,先返回,再自增 ++i,先自增,再返回 阅读全文
posted @ 2019-04-13 20:32 kuaqi 阅读(226) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/seu2hit/article/details/8772314 从sizeof角度,32位&64位系统区别:long(4个字节-8个字节)、指针(4个字节-8个字节) 阅读全文
posted @ 2019-04-12 23:26 kuaqi 阅读(337) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_33195791/article/details/82431811 保证最终在程序中使用的类型的位数是一定;例如64位系统的long int是 8个字节(64位),那么在32位系统中,为了保持64位,需要一个long long int的类型; 即 阅读全文
posted @ 2019-04-12 23:24 kuaqi 阅读(785) 评论(0) 推荐(0) 编辑
摘要: http://www.cppblog.com/fwxjj/archive/2010/05/27/116526.html 64位系统,long是8字节;32位系统,long是4字节; 阅读全文
posted @ 2019-04-12 23:17 kuaqi 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1、类成员函数访问修饰const,申明和定义中须保持一致; class IntCell{... ; int read( ) const;...} int IntCell::read( ) const { return storedValue } 阅读全文
posted @ 2019-04-11 17:34 kuaqi 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 一、初始化 https://www.cnblogs.com/SarahZhang0104/p/5749680.html https://blog.csdn.net/zhouzikai45/article/details/78738890 参考链接:new与指针 1、一维数组 1)静态 int arr 阅读全文
posted @ 2019-04-10 22:32 kuaqi 阅读(99) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/chenyangyao/p/5222696.html https://www.cnblogs.com/haoyijing/p/5815035.html https://blog.csdn.net/u014417133/article/details/7 阅读全文
posted @ 2019-04-10 21:47 kuaqi 阅读(138) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/yesyes120/article/details/78919149 1、数组名+1,是增加数组元素对应的数据类型的字节数; 数组名地址+1,是增加数组大小的字节数; //例如5个int*4; 2、指针+1,是增加指针类型对应的字节数; 指针地址+1,是增 阅读全文
posted @ 2019-04-10 18:42 kuaqi 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1、sizeof(struct) https://www.cnblogs.com/wllwqdeai/p/10682254.html 2、struct{...; static const int a=1; ...} https://blog.csdn.net/luckydan61/article/d 阅读全文
posted @ 2019-04-10 11:25 kuaqi 阅读(160) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/syyyy712/article/details/80212551 总结: 要求内存对齐; 遵循原则: 1)最小的字节倍数是4,即如果没有比4个字节更大的类型; 2)sizeof(T)大小是T中最大类型的倍数,比如double的8倍; 3)当出现字节数更大 阅读全文
posted @ 2019-04-10 11:15 kuaqi 阅读(1261) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页