Now, try using a copy construction and operator assignment for class a, declared in Listing 15.
现在,尝试为类a使用一个复制结构和运算符赋值,在清单15中声明该类。
Extract the files in this directory and create a copy of the VMM-People-Assignment-Criteria.xml file to add a new people assignment criterion.
在此目录下提取文件,并创建V MM -People -Assignment - Criteria . xml文件的一个副本,来添加一个新人员分配标准。
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。
To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.
为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。
When I return by value from an assignment operator, firstly what is the mechanism and basis of calling the copy constructor?
当我返回值赋值操作符,首先是调用复制构造函数为基础的机制?
Use this copy to prepare your answers. This is because you will NOT be able to save your answers online, and then come back to finalise your assignment at a later date.
使用此副本准备你的答案,这是因为您将不能够在线保存你的答案,然后再回来完成你的任务。
Use this copy to prepare your answers. This is because you will NOT be able to save your answers online, and then come back to finalise your assignment at a later date.
使用此副本准备你的答案,这是因为您将不能够在线保存你的答案,然后再回来完成你的任务。
应用推荐