首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 7. 编程序CompFile,首先让用户输入两个文件名及其路径(二文件均为text文件),而后通过使用类成员函数getline逐行读入这两个指定文件的内容并进行...

7. 编程序CompFile,首先让用户输入两个文件名及其路径(二文件均为text文件),而后通过使用类成员函数getline逐行读入这两个指定文件的内容并进行...

  • 资源大小:1.17 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Windows开发

资 源 简 介

7. 编程序CompFile,首先让用户输入两个文件名及其路径(二文件均为text文件),而后通过使用类成员函数getline逐行读入这两个指定文件的内容并进行比较。若发现有不同,则在屏幕上显示出相异二行的行号及其内容,并暂停下来询问用户是否需要继续比较后继行,直到用户回答不需要继续进行比较,或者已经比到了二文件的结束时停止处理。-7. Programmed CompFile, first of all allow users to enter two file names and their paths (two files are text files), then through the use of class member function getline reads line by line, the contents of the two specified file and compare. If it is found they were different, differences on the screen shows the line number 2 and its contents, and suspend the down and asks if they need to continue to compare follow-up line, until the user answers do not need to continue to compare, or is already higher than to the two documents stop processing at the end.

文 件 列 表

compfile.cpp
VIP VIP
0.185184s