上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 408 下一页
摘要: 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 阅读(386) 评论(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 阅读(2224) 评论(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 阅读(1271) 评论(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 阅读(413) 评论(0) 推荐(0)
摘要: 1、 阅读全文
posted @ 2021-08-07 17:36 小鲨鱼2018 阅读(55) 评论(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 阅读(290) 评论(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 阅读(736) 评论(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 阅读(1363) 评论(0) 推荐(0)
摘要: 1、$RANDON, 产生的随机数的范围是0~32767 [root@centos79 test]# echo $RANDOM 6420 [root@centos79 test]# echo $RANDOM 1799 2、产生20个1-100的随机数 [root@centos79 test]# fo 阅读全文
posted @ 2021-08-06 18:31 小鲨鱼2018 阅读(683) 评论(0) 推荐(0)
摘要: 一、使用一个至少8G的空U盘制作安装介质(系统镜像大概4.3G,所以U盘至少8G) 1、将U盘插入计算机 确认计算机已经识别。 2、百度搜索微软官方制作工具,官方地址:https://www.microsoft.com/zh-cn/software-download/windows10 3、点立即下 阅读全文
posted @ 2021-08-06 00:25 小鲨鱼2018 阅读(2093) 评论(0) 推荐(0)
上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 408 下一页