|
Those who know C++, I require assistance!
Okay you C++ users! This requires some basic C++ knowledge.
Now, I'm making a problem for my Computer Programming class that, in a part, I need to write a function.
The function should be, in c++:
basal_metabolic_rate<double> = 70 * (weight/2.2)...
This is the part I'm making a mistake, and it's the power function. I know the power function is, for example, pow(x,y) for x to the power of y. But I'm having problems on raising that small part of "(weight/2.2)".. I should raise that to the power of 0.756
So if anyone knows how to write that small part of the function in C++, please tell me. This stupid lab is due tonight and I keep doing this small mistake.
__________________
"So it goes."-Kurt Vonnegut
|