gpt4 book ai didi

c++ - 为什么 & 在这个 if 语句中?

转载 作者:太空宇宙 更新时间:2023-11-04 15:24:33 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
What does this & operator mean here?

为什么这个 if 语句中的 & 正好在宏 SDL_BUTTON 之前?它有什么作用?帮助我理解这段代码的作用。

if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1))
//code to be executed

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com