正在加载图片...
#include <iostream. h> class a DU void setx(int a)(x=a;) void sety(int b)iy=b;) int getxo const( return x;) int getyO const( return y;) protected X, private int y;#include <iostream.h> class A { public: void setx(int a) { x = a; } void sety(int b) { y = b; } int getx() const { return x; } int gety() const { return y; } protected: int x; private: int y;};
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有