c++中 mod 运算怎么表示?mod和%的区别是什么?还有mfc中的power函数为何不能使用,我头文件包含了cmath的,而且也是定义了的。
取模或者叫求余就是%操作,power函数如果没有,试试pow
#include 函数都在这个头文件中。。。
1.你试试头文件:
#include <bits/stdc++.h>
2.%和mod是一样的3.你试试下面的:
pow(x,y);