海上月
03
08
C++疑难点 C++疑难点
C++疑难点什么人间绝味 无非情怀半碗 温柔几滴 往事一勺 乡愁少许 this指针调用成员函数时,成员函数通过一个名为 this 的隐式参数来访问调用它的那个对象,用请求该函数的对象地址初始化 this ,this 的指向总是自己这个对象,
2024-03-08 AllenMirac
02
01
C++类和对象的属性 C++类和对象的属性
C++类和对象的属性千钧一发,让一根头发去承受三万斤的重量,但是它没有断。—–余华 const修饰结构体指针内部值不能修改,即:只能读,不能写。防止误操作 #include <iostream> using namespace std
2024-02-01 AllenMirac
01
21
Makefile 学习 Makefile 学习
Makefile 学习C语言的编译过程预处理(Preprocessing)-E是让编译器在预处理之后就退出,不进行后续编译过程;-o是指定输出文件名。 gcc -E hello.c -o hello.i 编译(Compilation) 这
2024-01-21 AllenMirac
19
C++指针复习 C++指针复习
const修饰指针#include <iostream> using namespace std; class Rectangle{ public: Rectangle(int length, int width
2024-01-19 AllenMirac