上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 修改可读取压缩格式文件 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <zlib.h> 5 6 #define RLEN 1024 7 8 static void getfq(char *fq) 阅读全文
posted @ 2020-11-04 17:17 天使不设防 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 目前只能处理短序列,若要处理长序列,可按照https://www.cnblogs.com/mmtinfo/p/13036039.html的读取方法。 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define 阅读全文
posted @ 2020-11-04 10:34 天使不设防 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 字符串存入数组 文本内容: line1_1 line1_2line2_1 line2_2line3_1 line3_2line4_1 line4_2line5_1 line5_2line6_1 line6_2 C代码: 1 #include <stdlib.h> 2 #include <stdio. 阅读全文
posted @ 2020-11-03 15:43 天使不设防 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: 1 static char *revers(char *s) 2 { 3 int len=strlen(s); 4 char *s2=(char *)malloc(sizeof(char)*(len+1)); 5 for(int i=len-1; i>=0; i--) 6 { 7 switch (s 阅读全文
posted @ 2020-10-28 11:22 天使不设防 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 利用getdelim函数分割读取字段,将文件制表符替换为空格符 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(int argc, char *argv[]) 5 { 6 char *line = NULL; 7 FILE *fp; 8 阅读全文
posted @ 2020-10-19 10:08 天使不设防 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 指向指针数组的指针。 1 #include <stdio.h> 2 3 int main(void) 4 { 5 char *pa[4]={"aaaaa","bbbbb","ccccc","ddddd"}; // 类型: char* (*)[4] 6 7 char** p=pa; // 指针p指向一 阅读全文
posted @ 2020-10-08 16:27 天使不设防 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-09-30 18:02 天使不设防 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 很简陋,没有做输入校验,以写出来为第一目的,中间出了不少问题,尤其是结构体内字符串赋值的时候(理解不透彻😔),字符串比较用strcmp不能直接==判定,逻辑也很重要,不然会出现莫名其妙的问题。 涉及知识:结构体 数组 字符串 1 #include <stdlib.h> 2 #include <st 阅读全文
posted @ 2020-09-30 15:04 天使不设防 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 字符串指针和字符串数组使用区别 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 阅读全文
posted @ 2020-09-29 23:39 天使不设防 阅读(478) 评论(0) 推荐(0) 编辑
摘要: perl : while(defined(my $f1=<FQ1>) && defined(my $f2=<FQ2>)){ condition } python3 : for line1,line2 in zip(fileHandle1,fileHandle2): condition 阅读全文
posted @ 2020-09-28 16:54 天使不设防 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页