Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要通过文件路径比较 5 个文件:a、b、c、d、e 并查找重复项(如果存在)。如何通过文件的 md5sum 比较在 C++ 中做到这一点?
您需要计算每个文件的校验和(自己编写或调用外部程序),获取每个文件,......这取决于操作系统。用脚本语言做这样的事情要容易得多。