limanjihe

导航

< 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

统计

随笔分类 -  C/C++等高级语言

C/C++中的预编译指令(转)
摘要:reference:https://blog.csdn.net/sunshinewave/article/details/51020421 程序的编译过程可以分为预处理、编译、汇编三部分,其中预处理是首先执行的过程,预处理过程扫描程序源代码,对其进行初步的转换,产生新的源代码提供给编译器。 预处理过 阅读全文

posted @ 2018-12-21 12:34 limanjihe 阅读(786) 评论(0) 推荐(0) 编辑

intptr_t 指针(转)
摘要:reference:http://muchong.com/bbs/ 对于64为系统: typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; # if __WORDSIZE==64 typedef lon 阅读全文

posted @ 2018-12-21 11:15 limanjihe 阅读(2020) 评论(0) 推荐(0) 编辑

C语言结构体指针初始化(转)
摘要:reference: https://www.cnblogs.com/losesea/archive/2012/11/15/2772526.html 今天来讨论一下C中的内存管理。记得上周在饭桌上和同事讨论C语言的崛起时,讲到了内存管理方面我说所有指针使用前都必须初始化,结构体中的成员指针也是一样有 阅读全文

posted @ 2018-12-13 16:17 limanjihe 阅读(481) 评论(0) 推荐(0) 编辑

关于空指针NULL、野指针、通用指针 (转)
摘要:reference:https://www.cnblogs.com/losesea/archive/2012/11/16/2772590.html 首先说一下什么是指针,只要明白了指针的含义,你就明白null的含义了。假设 有语句 int a=10;那么编译器就在内存中开辟1个整型单元存放变量a,我 阅读全文

posted @ 2018-12-13 15:36 limanjihe 阅读(1801) 评论(0) 推荐(0) 编辑

C语言的通用指针类型(void *)
摘要:reference: https://blog.csdn.net/cumirror/article/details/4631701 https://blog.csdn.net/Lee_Shuai/article/details/53193436 指针有两个属性:指向变量/对象的地址和长度,但是指针只 阅读全文

posted @ 2018-12-13 12:26 limanjihe 阅读(3973) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示