Code
// Kolten Minix - Co127 - 9/27/10
#include <iostream>
#include <cmath>
#include "compfun.h"
using namespace std;
double futureValue(double presentValue, double rate, int n){
presentValue * (1, rate) ^ n;
}
int main() {
decimals(cout, 2);
// Test
cout << futureValue(1000.00, 7.5 / 1200.0, 36) << endl;
}
it wont let me compile it due to this error:
Error 2 error C2296: '^' : illegal, left operand has type 'double'
3 IntelliSense: expression must have integral or unscoped enum type
I tried looking it up on stack overflow, but coulndnt find a problem that was similar to mine