Mathematical fomula in C++ windows32 application

Hello,
I am writing a program to calculate the scores for a decathlon and I am having trouble applying the numbers to the formula.
The formula is (points = A*(B-dash)^C)
where points is what I want to find, A,B,C are constant and dash is the imputed amount. I keep getting the error (((invalid operands of types ‘double’ and ‘const float’ to binary ‘operator^’)))

Here is my Code:

#include <iostream>
using namespace std;
void main ()
{
double dash;
double points;
//for calculating the 100m points
const float A=25.437;
const float B=18.0;
const float C=1.81;


cout<<"What did you get in the 100m dash?\n";
cin>>dash;
cout<<"You got ";
cout<<dash;
cout<<" in the 100m dash";
cout<<endl;
points = A*(B-dash)^C; //formula
cout<<"your point are ";
cout<<points;
cout<<endl;

}
http://www.cplusplus.com/doc/tutorial/operators/ (bitwise operators)
^ is not interpreted as exponentiation.
http://www.cplusplus.com/reference/cmath/pow/
Topic archived. No new replies allowed.