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.
我对 C++ 甚至更多的 CPPUnit 有点陌生。有人可以告诉我应该用什么来断言数组值(将它们与预期进行比较)。我应该使用 memcmp 还是在 CPPUnit、C++ 或任何其他库中有更好的东西?
在现代 C++ 中,我们将数据范围与std::equal进行比较。