怎么比较字符串,忽略大小写的
完全不行啊,求个简单的办法
wchar_t a[10], b[10];
StrCpyW(a, L"abc");
StrCpyW(b, L"abc");
if (StrCmpIW(a, b) == 0)
{
wcout<<L"相等"<<endl;
}
#include <iostream>
#include <string>
#include <stddef.h>
using namespace std;
int main()
{
wchar_t a[10], b[10];
wcscpy(a, L"abc");
wcscpy(b, L"abc");
cout << wcscmp(a,b) << endl;
if ( wcscmp(a,b) == 0)
{
wcout<<L"Equal"<<endl;
}
return 0;
}