C++高手过来帮做几题试题,万分感谢!

2024-12-22 02:52:12
推荐回答(2个)
回答1:

1.Class::var=0
c1.var=1
c2.var=3
press any key to continue
2.constructor.
constructor.
c=20
c=20
destructor.
desturctor.
press any key to continue
3.x=3
x=12
press any key to continue

回答2:

自己打着试试