1 2 3 4 5 6 7 8 9
|
struct Calculate_Me{ // basically a bunch of variable defs.
public:
complex<double> quadratic;
double rad,deg,KE,momentum,impulse,force,work,power,quad_real,quad_imag,Fg,spring,Fe,frequency,wavelength,period; // calculated vars, split up to make it easier to program.
double mass,accel,velocity,distance,p,time,mass2; // units to be used in calculations
double vo,xo,po,to,wo,a,m,n,b,c; // initial values.
int choice;
}vars;
// Yeah, I probably should combine all the 'double' variables into one massive line, but it makes it easier to see while writing the code, and having to scroll to the side bugs the hell out of me.
|