08 2021 档案

摘要:1、 #include <stdio.h> #include <stdlib.h> int main(void) { int ch; FILE * fp; char filename[128]; int lines; char tail; printf("please input the filen 阅读全文
posted @ 2021-08-29 18:52 小鲨鱼2018 阅读(1948) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <stdbool.h> int main(void) { int ch; char filename[128]; FILE * fp; bool word = 阅读全文
posted @ 2021-08-29 16:49 小鲨鱼2018 阅读(249) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <ctype.h> #include <stdbool.h> int main(void) { char ch; bool word = false; bool space = false; int words = 0; while((c 阅读全文
posted @ 2021-08-29 16:23 小鲨鱼2018 阅读(700) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <stdlib.h> int main(void) { int ch; FILE * fp; char filename[128]; int sum = 0; printf("please input filename: "); scan 阅读全文
posted @ 2021-08-28 23:43 小鲨鱼2018 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { char choice; printf("a) xxxx b) yyyy\n"); printf("c) zzzz q) quit.\n"); printf("input your choice: "); while((c 阅读全文
posted @ 2021-08-27 02:12 小鲨鱼2018 阅读(159) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <stdbool.h> long get_long(void); long square_sum(long num1, long num2); bool get_range(long start, long end, long lower 阅读全文
posted @ 2021-08-27 01:02 小鲨鱼2018 阅读(312) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> long get_long(void); int main(void) { long num; printf("please input an num: "); num = get_long(); printf("num: %ld.\n", num); retu 阅读全文
posted @ 2021-08-26 01:26 小鲨鱼2018 阅读(653) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> int main(void) { long num; printf("please input an positive num: "); while(1) { while(scanf("%ld", &num) != 1) { printf("please inp 阅读全文
posted @ 2021-08-26 01:06 小鲨鱼2018 阅读(373) 评论(0) 推荐(0) 编辑
摘要:测试程序1: #include <stdio.h> int main(void) { char ch; printf("please input an character: \n"); while((ch = getchar()) != '#') printf("xxx\n"); return 0; 阅读全文
posted @ 2021-08-25 23:07 小鲨鱼2018 阅读(417) 评论(0) 推荐(0) 编辑
摘要:c语言中使用程序读取文件。 #include <stdio.h> #include <stdlib.h> int main() { int ch; FILE * fp; char fname[50]; printf("enter the name of the file: "); scanf("%s 阅读全文
posted @ 2021-08-25 01:31 小鲨鱼2018 阅读(617) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <ctype.h> int main(void) { char ch; int n_space = 0, n_lines = 0, n_other = 0; while((ch = getchar()) != '#') { if(ch = 阅读全文
posted @ 2021-08-23 00:25 小鲨鱼2018 阅读(109) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #include <ctype.h> #include <stdbool.h> #define STOP '|' int main(void) { char ch; char prep; long n_ch = 0L; int n_lines = 0; i 阅读全文
posted @ 2021-08-22 15:26 小鲨鱼2018 阅读(430) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #define STOP '|' int main(void) { char ch; int chnum = 0; int lines = 0; while((ch = getchar()) != STOP) { if(ch != '\n') chnum+ 阅读全文
posted @ 2021-08-22 12:41 小鲨鱼2018 阅读(889) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { char ch; ch = getchar(); while(ch != '\n') { if(ch == ' ') { putchar(ch); } else { putchar(ch + 1); } ch = getc 阅读全文
posted @ 2021-08-21 20:36 小鲨鱼2018 阅读(940) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #define NUM 26 int main(void) { char letters[NUM]; int i; for(i = 0; i < NUM; i++) { letters[i] = 'a' + i; } for(i = 0; i < NUM; 阅读全文
posted @ 2021-08-16 00:16 小鲨鱼2018 阅读(64) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { char ch; scanf("%c", &ch); while(ch != 'g') { printf("%c", ch); scanf("%c", &ch); } return 0; } 阅读全文
posted @ 2021-08-15 23:08 小鲨鱼2018 阅读(1551) 评论(0) 推荐(0) 编辑
摘要:c语言中复合赋值运算符的等级低于普通赋值运算符。 #include <stdio.h> int main(void) { int num1 = 2; int num2 = 2; num1 *= 3 + 8; // 等价于 num1 = num1 * (3 + 8);说明复合赋值运算符的优先级等于算术 阅读全文
posted @ 2021-08-15 01:19 小鲨鱼2018 阅读(581) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> #define M_PER_HOUR 60 int main(void) { int min; int hour, min_left; printf("please input the minutes to convert: "); scanf("%d", 阅读全文
posted @ 2021-08-12 23:28 小鲨鱼2018 阅读(53) 评论(0) 推荐(0) 编辑
摘要: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 阅读(200) 评论(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 阅读(4088) 评论(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 阅读(364) 评论(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 阅读(2171) 评论(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 阅读(1236) 评论(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 阅读(398) 评论(0) 推荐(0) 编辑
摘要:1、 阅读全文
posted @ 2021-08-07 17:36 小鲨鱼2018 阅读(35) 评论(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 阅读(280) 评论(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 阅读(692) 评论(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 阅读(1346) 评论(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 阅读(662) 评论(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 阅读(2028) 评论(0) 推荐(0) 编辑
摘要:1、只有一个c盘 2、右击我的电脑,选择管理 3、选磁盘管理 4、在未分配区域右击,选择新建简单卷 5、点下一步 6、选默认大小,点下一步 7、点下一步 8、点下一步 9、点击完成 10、查看 阅读全文
posted @ 2021-08-05 19:47 小鲨鱼2018 阅读(4503) 评论(0) 推荐(0) 编辑
摘要:1、 WIN 10 的数字权利激活(数字许可证激活)。重装系统后会自动永久激活。 所谓数字权利激活,就是激活后的主板信息上传到微软服务器中。再次重装,联网后就会自动激活。(https://zhidao.baidu.com/question/1115622188309944859.html) 2、 数 阅读全文
posted @ 2021-08-05 15:00 小鲨鱼2018 阅读(8556) 评论(0) 推荐(1) 编辑
摘要:一、 1、win + i打开windows设置, 然后选更新与安全 2、点击激活 3、即可查看激活状态 二、 1、win + r,在弹出的命令框中输入:slmgr.vbs -xpr,点确定 2、会自动弹出激活状态 阅读全文
posted @ 2021-08-05 14:54 小鲨鱼2018 阅读(4442) 评论(0) 推荐(0) 编辑
摘要:1、右击c盘,选择属性 2、点硬件,出现硬盘星号 阅读全文
posted @ 2021-08-05 14:49 小鲨鱼2018 阅读(999) 评论(0) 推荐(0) 编辑
摘要:1、右击c盘,选择属性 2、点工具,然后点击优化 3、c盘为固态,D盘位机械 阅读全文
posted @ 2021-08-05 01:59 小鲨鱼2018 阅读(15994) 评论(0) 推荐(0) 编辑
摘要:1、未激活状态 office 2019 专业增强版安装包: 链接:https://pan.baidu.com/s/1AgeTxa6-PKSFYyAEgdDsCA 提取码:zgni 2、使用KMS Tool激活office 来源:系统迷,https://www.xitmi.com/4036.html 阅读全文
posted @ 2021-08-03 03:57 小鲨鱼2018 阅读(8879) 评论(0) 推荐(0) 编辑
摘要:1、找到office安装的目录全盘检索OSPP.VBS的位置 2、win + r输入cmd, 回车进入dos窗口 3、cd C:\Program Files (x86)\Microsoft Office\Office16 进入office安装目录 4、执行 cscript OSPP.VBS /dst 阅读全文
posted @ 2021-08-03 01:24 小鲨鱼2018 阅读(3804) 评论(0) 推荐(0) 编辑
摘要:1、查看系统 [root@rhel8pc1 test]# hostnamectl Static hostname: rhel8pc1 Icon name: computer-vm Chassis: vm Machine ID: 73f2da100acd48f8891e11d2a3d353ab Boo 阅读全文
posted @ 2021-08-01 00:04 小鲨鱼2018 阅读(963) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示