を入れるだけで 2 つの文字列を比較できますstring1==string2
か?
void ex_file_licensing::compare_license(const std::string &reference,
const std::string &result)
{
if (reference == result)
cout << "It's the same" << endl;
else
cout << "It's diffrent" << endl;
return;
}
はいの場合、このコードは正しく機能するか、またはいくつかの変更を加える必要があります。
みんな、ありがとう