11 2024 档案
摘要: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+
阅读全文
摘要:001、 002、 003、 前景色全部改为0 004、 背景色全部改为255 。
阅读全文
摘要: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); // 在
阅读全文
摘要:001、问题 r/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found ; 002、libstdc++.so.6 是什么? 是一个动态库文件。 003、在什么位置? 位置:/usr/lib64/libstdc++.so.6 003、G
阅读全文
摘要:001、作用域:快作用域,文件作用域; 指的是变量的作用范围; 作用域控制的是变量的作用范围 如下程序: [root@localhost test]# ls test.c [root@localhost test]# cat test.c ## 测试c程序 #include <stdio.h> in
阅读全文
摘要:接收多维数组的函数,可以省略相当于开头下标的n维数组的个数,但是,(n - 1)维下的的元素个数必须是常量。 实质上是多维数组在传递过程中,最高维上表示元素个数是可变的,最高维之后的元素类型是不可变得,比如 int x[][3][2], 元素个数是可变得,而int [3][2]型是固定的。 定义函数
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:最简单的例子: 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
阅读全文
摘要: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
阅读全文
摘要:001、 作用域:变量的作用范围; 包括: 01、块作用域:只在程序块中起作用的变量; 02、文件作用域:在函数外声明的变量标识符, 其作用范围从其开始声明的部分开始,一直到程序结束的部分都有效。
阅读全文
摘要:二代测序中的library是什么意思?
阅读全文
摘要:存储期可以分为两类:自动存储期和静态存储期。 自动存储期:变量的作用周期在程序块内; 在程序块中使用一般的变量声明模式即可。 静态存储期:变量的作用周期在整个程序期间; 有两种声明方式,1、在程序块外声明; 2、在程序块内使用static关键字 001、自动存储期测试 [root@PC1 test]
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:c语言中函数形参 -- 值传递,址传递,引用传递
阅读全文
摘要: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
阅读全文
摘要:001、函数体内的变量名不可以和形参同名 a、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int max(int a, int b) { int k = 100; return a > b ?
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int max(int a, int b) // 创建一个名为max的函数 { int k = 100; if(a > b) { return
阅读全文
摘要:Hifi和ONT 有什么区别
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ##测试c程序 #include <stdio.h> int main(void) { int i,j; i = j = 5; // 连续赋值 printf("i = %d\n",
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int var1 = 5; // 初始化一个变量var1 int array1[var1]
阅读全文
摘要:001、一维数组 [root@PC1 test1]# ls test.c [root@PC1 test1]# cat test.c #include <stdio.h> int main(void) { int v1[5] = {3, 4, 8}; printf("length of v1 is %
阅读全文
摘要:001、 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt ## 测试数据,对如下文本按照a、b进行排序输出 01 02b 03 04 05 06a 07 08 09 10b 11 12 13 14b 15 16 17 18a 19 20
阅读全文
摘要:001、简单测试 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt ## 测试数据 01 02 03b 34 05 86 87a 98 09 10 41b 12 13 54 15i 16 17 18 19a 20 [root@PC1 tes
阅读全文
摘要:001、 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt ## 测试数据 fasp.sra.ebi.ac.uk:/vol1/fastq/SRR131/072/SRR13178372/SRR13178372.fastq.gz;fasp.sr
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { double tensu[2][4][3] = {{{3,4,2},{2,4,4},{2,4,3},{1,5
阅读全文
摘要:001、double型数据的输入 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { double vx; printf("vx = "); scanf(
阅读全文