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」の2乗で割る必要があります。現在、このための私のコードは次のようになります
side = inputNum/(curNum^2);
ただし、これにより、「バイナリへのオペランドが無効です^」というエラーが発生します。指数を正常に使用するにはどうすればよいですか。
試す
pow(curNum, 2)
動作するはずです......