摘要: 图片 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 顺心无忧 阅读(7) 评论(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) 编辑