在代码中添加判断语句以避免变量X的位置成为负数。例如:
int x = 10; // some code here if (x > 0) { x -= 5; // avoid x becoming negative } // continue with the rest of the code
上一篇:变量x必须是大小为[5 1]的。它当前的大小是[5 5]。请检查变量被赋值的地方。
下一篇:变量像GTEST_FOUND这样的变量是如何设置的?