出于某种原因,下面的这个 C++ 一直返回 false。任何帮助都会被接受!我会包含更多来源,但它在 LibPQ 中
std::string one = "stringa";
std::string two = "stringb";
std::string three = "stringa";
std::string four = "stringb";
if( one.compare( three ) == 0 && two.compare( four ) == 0 ) {
return true;
} else {
return false;
}