上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 407 下一页
摘要: c语言中const修饰符 001、不使用const修饰符 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> void print_array(int v[], int n); int 阅读全文
posted @ 2024-11-13 00:49 小鲨鱼2018 阅读(15) 评论(0) 推荐(0)
摘要: 最简单的例子: 001、 不适用extern关键字声明变量 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> int main(void) { printf("x = %d\n", x 阅读全文
posted @ 2024-11-12 09:35 小鲨鱼2018 阅读(23) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> int max_ay(int v[], int n); // 函数原型声明 int main(void) { int v[5 阅读全文
posted @ 2024-11-12 09:35 小鲨鱼2018 阅读(77) 评论(0) 推荐(0)
摘要: 001、 作用域:变量的作用范围; 包括: 01、块作用域:只在程序块中起作用的变量; 02、文件作用域:在函数外声明的变量标识符, 其作用范围从其开始声明的部分开始,一直到程序结束的部分都有效。 阅读全文
posted @ 2024-11-10 09:59 小鲨鱼2018 阅读(31) 评论(0) 推荐(0)
摘要: 二代测序中的library是什么意思? 阅读全文
posted @ 2024-11-09 18:47 小鲨鱼2018 阅读(28) 评论(0) 推荐(0)
摘要: 存储期可以分为两类:自动存储期和静态存储期。 自动存储期:变量的作用周期在程序块内; 在程序块中使用一般的变量声明模式即可。 静态存储期:变量的作用周期在整个程序期间; 有两种声明方式,1、在程序块外声明; 2、在程序块内使用static关键字 001、自动存储期测试 [root@PC1 test] 阅读全文
posted @ 2024-11-09 17:58 小鲨鱼2018 阅读(61) 评论(0) 推荐(0)
摘要: 001、没有返回值的函数 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> void put_star(int a) // 定义不含返回值的函数 { while(a-- > 0) pu 阅读全文
posted @ 2024-11-09 17:47 小鲨鱼2018 阅读(73) 评论(0) 推荐(0)
摘要: 001、方法1 while循环 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> int get_length(int a) { int length = 0; while(a > 0 阅读全文
posted @ 2024-11-08 23:07 小鲨鱼2018 阅读(39) 评论(0) 推荐(0)
摘要: c语言中函数形参 -- 值传递,址传递,引用传递 阅读全文
posted @ 2024-11-08 09:39 小鲨鱼2018 阅读(10) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 abcd KHG DETT dre ssae rtE [root@PC1 test]# awk '{$1 = toupper(substr($1, 1, 1)) sub 阅读全文
posted @ 2024-11-07 23:56 小鲨鱼2018 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 407 下一页