使用vc ++比较两个.cpp文件 [英] comparing of two .cpp files using vc++

查看:212
本文介绍了使用vc ++比较两个.cpp文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个CXTPReportView(Listviews),两边各有两个.cpp文件.

但是在添加到列表视图之前,我想从file(.cpp)中读取并比较每一行和

一个字符一个字符,差异应该用不同的颜色.

如果左视图中有数据而右视图中无数据,则右视图

应该有空行.

如果有人做过早,请帮我,或者只是提供示例代码进行修改.

给出示例示例.


在此先感谢.



I have two CXTPReportView (Listviews), both sides having two .cpp files one each.

But before adding to listview i want to read from file(.cpp) and compare each line and

character by character, the differences should be in different color.

if Left view is having data and right view is not having data then the right view

should have empty line.

Please help me out if any one had did early or just give a sample code to modify.

give the sample example.


Thanks in Advance.

推荐答案

WinMerge完全按照您的描述进行操作.您可以选择整个文件夹进行比较,如果以后要合并文件,也可以这样做.
WinMerge does that exactly in the way you describe. You can select whole folders for comparison, and later if you want to merge the files, you can do that too.


这篇关于使用vc ++比较两个.cpp文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆