摘要: 图片 A.c // // Created by clou on 2024/4/29. // #include <stdio.h> #include "A.h" void func() { printf("hello world\n"); } A.h // // Created by clou on 阅读全文
posted @ 2024-04-29 19:18 顺心无忧 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 截图: main.c // // Created by clou on 2024/4/29. // #include <stdio.h> #include "main.h" //包含自己实现的头文件 //定义全局变量 int cnt; int sum; //定义函数 int func(int x, 阅读全文
posted @ 2024-04-29 19:10 顺心无忧 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { // (1)指向整型常量的指针。【const pointer】 地址:可变,值:不可变 const int *p1; // 等价于 int const *p2; printf("[[constant pointer]] before c 阅读全文
posted @ 2024-04-29 19:04 顺心无忧 阅读(1) 评论(0) 推荐(0) 编辑
摘要: C标准库中srand()和rand()关于随机数的记录 C++中的随机数看这里应该够用 阅读全文
posted @ 2023-06-02 22:40 顺心无忧 阅读(27) 评论(0) 推荐(0) 编辑
摘要: C++指针需要知道的小细节 阅读全文
posted @ 2023-05-31 22:12 顺心无忧 阅读(57) 评论(0) 推荐(0) 编辑
摘要: VisualStudio项目的最佳设置 阅读全文
posted @ 2023-05-01 21:25 顺心无忧 阅读(65) 评论(0) 推荐(0) 编辑
摘要: C++基本变量大小的查询 阅读全文
posted @ 2023-04-24 21:42 顺心无忧 阅读(40) 评论(0) 推荐(0) 编辑
摘要: crc8校验代码参考:g(x) = x^8 + x^5 + x^4 + 1(正序) 阅读全文
posted @ 2023-01-26 23:45 顺心无忧 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 必须使用初始化成员列表的三种情况 必须使用初始化成员列表的三种情况 阅读全文
posted @ 2023-01-20 09:50 顺心无忧 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 类中类的构造和析构顺序 类中类的构造和析构顺序 阅读全文
posted @ 2023-01-17 08:58 顺心无忧 阅读(178) 评论(0) 推荐(0) 编辑