go top

class member variable

网络释义

  中都需要有一些类的成员变量

我们知道,在C++中,几乎每一个类(class)中都需要有一些类的成员变量(class member variable),在通常情况下的做法如下: class Person {

基于2个网页-相关网页

有道翻译

class member variable

类成员变量

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it.

    如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。

    youdao

  • Well, I could add a new member field to the class and use that instead of a local variable.

    是的,我可以在类中添加一个新的成员字段,并使用这个字段而不是局部变量。

    youdao

  • Observe that the implementation emits trace events using the m_logger member variable from the base class.

    观察该实现使用基础类中m_logger成员变量发出的跟踪事件。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定