12 2024 档案
摘要:题目:给出百分制成绩,要求输出成绩等级'A',"B','℃','D','E'。 90 分以上为'A',80-89 分为'B’,70-79 分为'C',60-69分为 'D',60 分以下为 'E'。 代码: #include <stdio.h> #include <stdlib.h> int mai
阅读全文
摘要:1.修改文件"/etc/network/interfaces" ┌──(root㉿kali)-[~] └─$ sudo vi /etc/network/interfaces # This file describes the network interfaces available on your
阅读全文
摘要:题目:复制文件内容到新文件 代码: #include <stdio.h> #include <stdlib.h> void file1(){ FILE *fp1,*fp2; char ch,filename1[10],filename2[10]; printf("请输入读入的文件名:"); scan
阅读全文
摘要:题目: 从键盘输入一些字符,并逐个把它们送到磁盘上去,直到用户输入一个“#”为止。 代码: #include <stdio.h> #include <stdlib.h> void file1(){ FILE *fp; char ch,filename[10]; printf("请输入文件名:");
阅读全文