网问答>>写出下面程序的执行结果?
问题
未解决

写出下面程序的执行结果?

时间:2023-04-14 13:45:12
#includeiostream. h class A{ int a,b; public: A(int i,int j){a=i;b=j;} void move(int x,int y){a+=x;b+=y,}void show().{cout(°ac)b)ln";}} ;class B:privateA{int x,y,public:B(int i,int j,int k,int 1):A(i,j){x=k;y=1;}void show( ){coutx","yendl;}void fun( ){move(3,5);}void f1( ){A::show( );}} ;void main(){Ae(1,2);e. show( );Bd(3,4,5,6);D. fun( );D. show( );D.f1( );}
本类最有帮助
Copyright © 2008-2013 www.wangwenda.com All rights reserved.冀ICP备12000710号-1
投诉邮箱: