#ifdef __LINUX__ #include#endif #include using namespace std; #ifdef __LINUX__ #define strSame(a, b) (strcasecmp(a, b) == 0) #else #define strSame(a, b) (stricmp(a, b) == 0) #endifc
使用方法:
strSame("AAa", "aaa"); // true
strSame("AAa", "abc"); // false



