上一页 1 ··· 244 245 246 247 248 249 250 251 252 ··· 367 下一页
摘要: c语言中指数增长程序。 #include <stdio.h> #define SQUARES 64 int main(void) { const double CROP = 2E16; double current, total; int count = 1; printf("square grai 阅读全文
posted @ 2021-08-10 00:49 小鲨鱼2018 阅读(184) 评论(0) 推荐(0) 编辑
摘要: c语言中的指数运算。 #include <stdio.h> #include <math.h> int main(void) { float tmp; tmp = pow(2,3); printf("pwo(2,3) = %f.\n", tmp); return 0; } 阅读全文
posted @ 2021-08-09 23:53 小鲨鱼2018 阅读(4028) 评论(0) 推荐(0) 编辑
摘要: 1、编写一个程序,提示用户输入名和姓, 然后以“名,姓”的格式打印出来。 #include <stdio.h> int main(void) { char name[128]; char surname[128]; printf("please input your name: "); scanf( 阅读全文
posted @ 2021-08-09 22:06 小鲨鱼2018 阅读(296) 评论(0) 推荐(0) 编辑
摘要: \0oo: 用八进制数表示字符,o必须为有效的八进制数(0-7), 也可以写成 \oo的形式。 1、 #include <stdio.h> int main(void) { printf("test1: %c.\n", '\041'); // 八进制数的41表示十进制数33 printf("test 阅读全文
posted @ 2021-08-09 01:25 小鲨鱼2018 阅读(2033) 评论(0) 推荐(0) 编辑
摘要: c语言中printf()函数也有一个返回值,它返回打印字符的个数。 #include <stdio.h> int main(void) { int num = 10; int count; count = printf("num:%d\n", num); //printf()函数的返回值是打印字符的 阅读全文
posted @ 2021-08-07 23:45 小鲨鱼2018 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> #define TEST 58 //符号常量or对象式宏 int main(void) { printf("|%d|\n", TEST); printf("|%5d|\n", TEST); //5表示宽度 printf("|%-5d|\n", TEST); 阅读全文
posted @ 2021-08-07 20:56 小鲨鱼2018 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2021-08-07 17:36 小鲨鱼2018 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1、测试文件 [root@centos79 test]# touch a.txt b.txt [root@centos79 test]# ls a.txt b.txt 2、生成测试文件的绝对路径 [root@centos79 test]# ls a.txt b.txt [root@centos79 阅读全文
posted @ 2021-08-07 11:02 小鲨鱼2018 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat reads.list sample01 /home/test/sample01 /home/test/sample01_2.fq.gz sample02 /home/test/sample02 /home/test/sample02_ 阅读全文
posted @ 2021-08-06 20:24 小鲨鱼2018 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# ls a.txt b.txt [root@centos79 test]# cat a.txt e k [root@centos79 test]# cat b.txt e r t d f 3 s g k i e x d f g 2、以a.txt 阅读全文
posted @ 2021-08-06 18:41 小鲨鱼2018 阅读(1324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 244 245 246 247 248 249 250 251 252 ··· 367 下一页