这个错误是什么意思?
C:\Users\ThinkPad\Desktop\C\s1e9_2\main.c:31:42: error: invalid operands to binary ^ (have 'double' and 'int')ave_repay = loan * (mir * (1.0 + mir)^(time * 12)) / ((1.0 + mir)^(time * 12) - 1);
C 没有乘方运算符。 #include<math.h>
ave_repay = loan * (mir * pow(1.0 + mir, time * 12) / pow(1.0 + mir, time * 12) - 1);
页:
[1]