赋值运算符重载 — 计算机填空题
题目
有如下C++程序:#include <iostream> using namespace std; class Box { public: int len; Box(int v) : len(v) { } Box& operator=(const Box& b) { len = b.len * 2; return *this; } }; int main() { Box a(5), b(1); b = a; cout << b.len << endl; return 0; } 程序运行后输出 ____。