• Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.

    赋值操作符把右边的东西,复制到左边。

    youdao

  • The goal here is to avoid accidentally using the single-equals assignment operator instead of the double-equals comparison operator

    目标在于避免意外地使用单等号赋值运算符而非双等号比较运算符

    youdao

  • This section discusses modeling an assignment operator for a C++ class. To generate this assignment operator for a C++ class named Class1, perform these steps

    这部分讨论的是为 C++类建模一个赋值操作符。

    youdao

  • An assignment operator was not accessible in a base class and was therefore not generated for a derived class.

    基类中的赋值运算符不可访问,因此无法为派生类生成赋值运算符。

    youdao

  • When a binary operator is overloaded, the corresponding assignment operator, if any, is also implicitly overloaded.

    重载二元运算符时,也会隐式重载相应的赋值运算符(如果有)。

    youdao

  • We'll learn more about operator overloading in the next chapter, but in this chapter we cover the assignment operator.

    在下一章我们将进一步学习操作符重载,本章中我们先介绍赋值操作符。

    youdao

  • However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.

    不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。

    youdao

  • This assignment operator implicitly performs widening but not narrowing conversions if the compilation environment enforces strict semantics.

    如果编译环境强制使用严格的语义,则此赋值运算符将隐式地执行扩大转换而不是收缩转换。

    youdao

  • To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.

    为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。

    youdao

  • To resolve C2299, do not make the copy constructor or assignment operator a template function, but rather a non-template function that takes a class type.

    若要解决C2299,请不要使复制构造函数或赋值运算符成为模板函数,而使其成为采用类类型的非模板函数。

    youdao

  • To resolve C2299, do not make the copy constructor or assignment operator a template function, but rather a non-template function that takes a class type.

    若要解决C2299,请不要使复制构造函数或赋值运算符成为模板函数,而使其成为采用类类型的非模板函数。

    youdao

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

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

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