reference function from another function
- by JohnWong
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.