摘要:
3.比较两个文本文件是否相等:比较两个文本文件的内容是否相同,并输出两个文件中第一次出现不同字符内容的行号及列值。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(void){ int row, column; c 阅读全文
posted @ 2021-09-29 11:47
就是想学习
阅读(115)
评论(0)
推荐(0)
摘要:
第二题 将实数写入文件:从键盘输入若干实数(以特殊数值-1结束),分别写到一个文本文件中。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(void){ double number; FILE *fp; if (( 阅读全文
posted @ 2021-09-29 11:06
就是想学习
阅读(303)
评论(0)
推荐(0)
摘要:
第一题:统计文本文件中各类字符个数:分别统计一个文本文件中字母、数字及其其它字符的个数。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(void){ int alphabet, digit, other; cha 阅读全文
posted @ 2021-09-29 10:46
就是想学习
阅读(189)
评论(0)
推荐(0)
浙公网安备 33010602011771号