导航

2024年4月29日 #

C语言关于多源文件的调用

摘要: 图片 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 熊猫暴捶林黛玉 阅读(34) 评论(0) 推荐(0)

C语言关于头文件的使用

摘要: 截图: 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 熊猫暴捶林黛玉 阅读(30) 评论(0) 推荐(0)

关于C语言的常量

摘要: #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 熊猫暴捶林黛玉 阅读(15) 评论(0) 推荐(0)