This is probably the dumbest question ever, but I just started using C++ today. When I try to multiply two constants of type "double" I get an error: "Illegal use of floating point in function..." How do you do this correctly? Here is basically what I have going on:
const double deltax = 1E-9;
const double deltat = 2E-15;
const double alpha = 1.27E-4;
double Fo;
Fo = alpha*deltax/deltat^2;
Thanks.
const double deltax = 1E-9;
const double deltat = 2E-15;
const double alpha = 1.27E-4;
double Fo;
Fo = alpha*deltax/deltat^2;
Thanks.