Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能是一个简单的问题,但我将变量“side”除以变量“curNum”的平方。目前,我的代码看起来像
side = inputNum/(curNum^2);
但是,这给了我错误“二进制 ^ 的操作数无效”如何成功使用指数?
尝试
pow(curNum, 2)
应该管用......