上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 407 下一页
摘要: 001、 [root@PC1 test1]# ls test1.c test2.c [root@PC1 test1]# cat test1.c #include <stdio.h> int main(void) { int i; int x = 10000; for(i = 0; i < 4; i+ 阅读全文
posted @ 2024-11-23 13:18 小鲨鱼2018 阅读(36) 评论(0) 推荐(0)
摘要: 001、 002、 003、 前景色全部改为0 004、 背景色全部改为255 。 阅读全文
posted @ 2024-11-23 11:40 小鲨鱼2018 阅读(478) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int a = 100; // 该变量具有文件作用域 int main(void) { printf("a = %d\n", a); // 在 阅读全文
posted @ 2024-11-22 13:03 小鲨鱼2018 阅读(15) 评论(0) 推荐(0)
摘要: 0、 库文件,动态库和静态库的区别 。 阅读全文
posted @ 2024-11-21 22:48 小鲨鱼2018 阅读(10) 评论(0) 推荐(0)
摘要: 001、 编译和链接有什么区别和联系? 。 阅读全文
posted @ 2024-11-21 21:55 小鲨鱼2018 阅读(21) 评论(0) 推荐(0)
摘要: 001、问题 r/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found ; 002、libstdc++.so.6 是什么? 是一个动态库文件。 003、在什么位置? 位置:/usr/lib64/libstdc++.so.6 003、G 阅读全文
posted @ 2024-11-21 21:53 小鲨鱼2018 阅读(138) 评论(0) 推荐(0)
摘要: 001、作用域:快作用域,文件作用域; 指的是变量的作用范围; 作用域控制的是变量的作用范围 如下程序: [root@localhost test]# ls test.c [root@localhost test]# cat test.c ## 测试c程序 #include <stdio.h> in 阅读全文
posted @ 2024-11-21 14:49 小鲨鱼2018 阅读(24) 评论(0) 推荐(0)
摘要: 接收多维数组的函数,可以省略相当于开头下标的n维数组的个数,但是,(n - 1)维下的的元素个数必须是常量。 实质上是多维数组在传递过程中,最高维上表示元素个数是可变的,最高维之后的元素类型是不可变得,比如 int x[][3][2], 元素个数是可变得,而int [3][2]型是固定的。 定义函数 阅读全文
posted @ 2024-11-21 13:03 小鲨鱼2018 阅读(54) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test1]# ls test.c [root@PC1 test1]# cat test.c ## 测试c程序 #include <stdio.h> void print_array(const int x[4][3]); // 函数原型声明 int main(void 阅读全文
posted @ 2024-11-19 22:30 小鲨鱼2018 阅读(218) 评论(0) 推荐(0)
摘要: 001、一维数组的传递 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> void print_array(int a[], int b); // 函数原型声明, 末尾需要冒号 int 阅读全文
posted @ 2024-11-18 14:59 小鲨鱼2018 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 407 下一页