有没有办法从C ++差异文件? [英] Is there a way to diff files from C++?
本文介绍了有没有办法从C ++差异文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个C或C ++的比较库。我知道我可以结合系统
或使用Unix 差异
工具 EXEC
,但我真的希望有一个图书馆。这将是方便的,如果图书馆可以执行补丁程序,以及像Unix的补丁
工具。
I'm looking for a C or C++ diff library. I know I can use the Unix diff
tool in combination with system
or exec
, but I really want a library. It would be handy if the library could perform patches as well, like the Unix patch
tool.
推荐答案
我想我已经找到了一个很好的解决方案,最后:
I think I've found a good solution, finally:
借助 DTL - DIFF模板库 ---的教程
它支持补丁。我不得不输入diff.cpp到谷歌找到它。希望它的作品!
It supports patch. I had to type "diff.cpp" into Google to find it. Hopefully it works!
这篇关于有没有办法从C ++差异文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文