Comparing 2 wchar_t arrays

后端 未结 2 1821
悲&欢浪女
悲&欢浪女 2021-01-18 06:53

I\'m sure this is sooo simple but I\'ve come from a c# background where strings are easy and now I am making a small trip into the unmanaged world I am very confused.

<
相关标签:
2条回答
  • 2021-01-18 07:42

    If you check Visual Studio help for strcmp, you'll find it lists 3 functions to compare strings: strcmp, wcscmp and _mbscmp. The one you're looking for is wcscmp.

    0 讨论(0)
  • 2021-01-18 07:45

    Use a std::wstring, it has an operator==.

    0 讨论(0)
提交回复
热议问题