gpt4 book ai didi

C++ AntTweakBar : multiple "variables" appear linked in some way. 。漏洞

转载 作者:行者123 更新时间:2023-11-28 07:34:55 25 4
gpt4 key购买 nike

对于了解 AntTweakBar 的人:

当我制作链接到 bool 值的多个 TwAddVarRW(变量)时...(总共我有大约 15 个 bool 条,彼此正下方)

当我“检查”一个...它下面的其他 4 个(大部分时间)也会立即检查!而 bool 值只会从我点击的那个开始改变!怎么会这样?错误?

解释:(情况未检查)

bool 1 = false = "not checked"
bool 2 = false = "not checked"
bool 3 = false = "not checked"
bool 4 = false = "not checked"
bool 5 = false = "not checked"
bool 6 = false = "not checked"

----> i CLICK/CHECK bool 2 按钮

(“2被点击”的情况)

bool 1 = false = "not checked"
bool 2 = true = "checked"
bool 3 = false = "checked"
bool 4 = false = "checked"
bool 5 = false = "checked"
bool 6 = false = "checked"

(情况应该如何)

bool 1 = false = "not checked"
bool 2 = true = "checked"
bool 3 = false = "not checked"
bool 4 = false = "not checked"
bool 5 = false = "not checked"
bool 6 = false = "not checked"

但即使我取消选中一个不应该选中的,无论是哪个,他们都会取消选中....:S所以这太他妈奇怪了……请帮帮我

最佳答案

好吧,问题是他们使用的 bool 值被指定/用作引用!我们放弃了它是一个“TW_TYPE_BOOL32”,而它实际上是一个“TW_TYPE_BOOL8”......所以它以这种方式错误地阅读了引用!现已修复 ;)

关于C++ AntTweakBar : multiple "variables" appear linked in some way. 。漏洞,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16942363/

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