关于wcscmp的使用问题

Shiina_Kaoru 2019-02-02 03:53:01
不知道是不是我太菜了还是怎么样,今天发现了一个问题。

今天排错,单步运行慢慢排查,发现了上面这个情况,有没有大佬帮我解释一下。
上面那张图是我把关键东西抠出来的。
...全文
165 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Shiina_Kaoru 2019-02-02
  • 打赏
  • 举报
回复
引用 3 楼 zgl7903 的回复:
等于0才表示相等

Returns an integral value indicating the relationship between the strings:
return value indicates
<0 the first character that does not match has a lower value in ptr1 than in ptr2
0 the contents of both strings are equal
>0 the first character that does not match has a greater value in ptr1 than in ptr2

谢谢我懂了,由于疏忽没有注意的
zgl7903 2019-02-02
  • 打赏
  • 举报
回复
等于0才表示相等

Returns an integral value indicating the relationship between the strings:
return value indicates
<0 the first character that does not match has a lower value in ptr1 than in ptr2
0 the contents of both strings are equal
>0 the first character that does not match has a greater value in ptr1 than in ptr2

Shiina_Kaoru 2019-02-02
  • 打赏
  • 举报
回复
引用 1 楼 zgl7903 的回复:
这条语句还没执行呢 204就是CC(栈数据没有初始化), 再单步执行一步再看


还是不懂
zgl7903 2019-02-02
  • 打赏
  • 举报
回复
这条语句还没执行呢 204就是CC(栈数据没有初始化), 再单步执行一步再看


64,632

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧