https://github.com/fqxy/DataStructures-Algorithms
https://github.com/2604150210/ACM_Algorithm
https://github.com/sr6033/dataStructure-Algorithms
- 指针
- 数组指针和二维数组
- 智能指针
- 引用
- 内存分块: text,data,heap,stack; $ ulimit -a; C:\Users\xyz> size xxx.exe
- c/c++ 的数组默认在栈区分配
- 左值右值
- extern
- const
- auto
- using
- nullptr
- io
- 成员变量
- 成员函数
- 构造函数
- 拷贝构造函数
- 析构函数
- 运算符重载
- 友元(friend)
- 虚函数(virtual)
- 内联函数(inline)
- 不带指针的类多半不用写析构函数
- class body 里边的函数按语法理解都是内联函数
- class body 外边的函数可以用 inline 关键字建议编译器将其编译为内联函数
- 函数体如果太过复杂编译器不会接受建议
- allocator
- 访函数
- gcc hello.c --save-temps
- gcc -E hello.c -o hello.i 预处理:宏定义展开,头文件展开
- gcc -S hello.i -o hello.s 编译:语法检查,将目标文件编译生成汇编文件
- gcc -c hello.s -o hello.o 汇编:将汇编文件生成目标文件(不可以执行)
- gcc hello.o -o hello.out 链接:链接依赖库到目标文件生成可执行文件
