pow函数
int Rev(int n){
int temp=0;
temp=n%pow(10,1);
原意是想想提取n数里的个位;如123 提出3(方法并不是最简单 只是想知道这样为什么会错) 但是编译提示
error C2297: '%' : illegal, right operand has type 'double'
pow函数模板不是可以用int型嘛 哪里错啊呢?
2008-04-12 15:26
2008-04-12 15:29
2008-04-12 15:50