reference function from another function

Posted by JohnWong on Stack Overflow See other posts from Stack Overflow or by JohnWong
Published on 2010-03-19T15:38:22Z Indexed on 2010/03/19 15:41 UTC
Read the original article Hit count: 172

Filed under:
|

I forgot how to reference another function into a function in C++? In python it is declare as a class so that I can use it.

double footInches(double foot)
{
 double inches = (1.0/12.00) * foot;
 return inches;
}

double inchMeter(double inch)
{
 double meter = 39.37 * (footInches(inches));
 return meter;
}

I want to reference footInches in inchMeter.

© Stack Overflow or respective owner

Related posts about c++

Related posts about function