下列程序能够执行成功吗?如果不能,怎样修改才能执行成功?
class A
{
private:
int value;
public:
A(int n) {
value = n; }
A(A other) {
value = other.value; }
void Print() {
std::cout << value << std::endl; }
};
int _tmain(int argc, _TCHAR* argv[])
{
A a = 2019;
A b = a;
b.Print