写出下面程序的输出结果。#includeclasslocation{intX,Y;public:voidinit(int=0,int=0);voidvalueX(intval){X=val;}intvalueX{returnX;}voidvalueY(intval){Y=val;}intvalueY{returnY;}};voidLocation::init(intinitX,intinitY){X=initX;Y=initY;}voidmain{LocationA,B;A.init;cout<
收藏
反馈