09 2020 档案
摘要:C语言一级指针指向一级指针 和二级指针指向一级指针的区别! 1 #include <stdio.h> 2 #include <string.h> 3 4 int main(void) 5 { 6 char s1[]="hello"; 7 char *p = s1; 8 char *q = p; 9
阅读全文
摘要:很简陋,没有做输入校验,以写出来为第一目的,中间出了不少问题,尤其是结构体内字符串赋值的时候(理解不透彻😔),字符串比较用strcmp不能直接==判定,逻辑也很重要,不然会出现莫名其妙的问题。 涉及知识:结构体 数组 字符串 1 #include <stdlib.h> 2 #include <st
阅读全文
摘要:字符串指针和字符串数组使用区别 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 5 int main(void) 6 { 7 char str1[]="this is str1!"; 8 puts(str1); 9
阅读全文
摘要:perl : while(defined(my f2=<FQ2>)){ condition } python3 : for line1,line2 in zip(fileHandle1,fileHandle2): condition
阅读全文
摘要:do while 循环小练习 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(void) 5 { 6 int a; 7 do{ 8 fprintf(stdout,"%s\n","请输入一个整数:"); 9 scanf("%d",&a);
阅读全文
摘要:改进了一下,利用zlib可以读取gz格式的压缩文件,也可以直接计算非压缩格式 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <zlib.h> #define buff 1024 typedef unsigned
阅读全文
摘要:C语言小练习:计算非压缩fastq格式的GC含量 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define buff 1024 5 6 typedef unsigned long long int u_llo
阅读全文