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).
有一个比较基础的问题想要请教:仿照其他函数格式构造下列函数,目的是调用Tv温度场,必须加入const Thermo& thermo才能实现thermo.Tv() 调用,但不了解const Thermo& thermo是什么变量?Tvenewdefinition该如何调用? scalar Tvenewdefinition ( const Thermo& thermo ) const { return thermo.Tv(); }
const Thermo& thermo是什么变量?
是个Thermo变量。Thermo是一个类型。
@李东岳 在 函数调用出现未知类型 中说:
const Thermo& thermo是什么变量? 是个Thermo变量。Thermo是一个类型。
谢谢李老师!该如何定义Thermo类型的变量呢?我想调用Tvenewdefinition这个函数,需要输入该类型的变量,但我输出thermo发现是个关于组分信息的矩阵,不知道该如何定义。