会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
kuaqi
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
20
21
22
23
24
25
26
27
28
···
31
下一页
2019年4月13日
i++ & ++i 区别
摘要: i++,先返回,再自增 ++i,先自增,再返回
阅读全文
posted @ 2019-04-13 20:32 kuaqi
阅读(236)
评论(0)
推荐(0)
2019年4月12日
sizeof 数据类型大小 32位&64位
摘要: https://blog.csdn.net/seu2hit/article/details/8772314 从sizeof角度,32位&64位系统区别:long(4个字节-8个字节)、指针(4个字节-8个字节)
阅读全文
posted @ 2019-04-12 23:26 kuaqi
阅读(354)
评论(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
阅读(813)
评论(0)
推荐(0)
long & int 区别
摘要: http://www.cppblog.com/fwxjj/archive/2010/05/27/116526.html 64位系统,long是8字节;32位系统,long是4字节;
阅读全文
posted @ 2019-04-12 23:17 kuaqi
阅读(352)
评论(0)
推荐(0)
2019年4月11日
类函数修饰 const
摘要: 1、类成员函数访问修饰const,申明和定义中须保持一致; class IntCell{... ; int read( ) const;...} int IntCell::read( ) const { return storedValue }
阅读全文
posted @ 2019-04-11 17:34 kuaqi
阅读(151)
评论(0)
推荐(0)
2019年4月10日
指针
摘要: 一、初始化 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
阅读(104)
评论(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
阅读(141)
评论(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
阅读(280)
评论(0)
推荐(0)
struct
摘要: 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
阅读(169)
评论(0)
推荐(0)
sizeof (struct)
摘要: 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
阅读(1325)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
26
27
28
···
31
下一页
公告