Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在twoPhaseMixtureThermo这个库中定义了rho1() rho2() , 在compressibleTwoPhaseMixture中需要定义rho1() rho2() , 怎样实现呢? 可否指点一下...
更正一下问题:一个类的成员函数怎样在另一个类里使用?
可以通过对象实例+成员访问运算符.或->调用。
.
->
如:compressibleTwoPhaseMixture类中定义了一个变量twoPhaseMixtureThermo& mixture,那么可以通过mixture.rho1()及mixture.rho2()访问mixture这个对象的相应成员函数。
compressibleTwoPhaseMixture
twoPhaseMixtureThermo& mixture
mixture.rho1()
mixture.rho2()
mixture
很感谢!!!