正在加载图片...
L53A08 例2:非虚成员函数 class graph i int X, y, public Graph (int xx, int yy)I X= xX;y -Grapho( j void Draw cdc &dc) dc Ext Out(x, y"This is a Graph Object "); int getXO const freturn x int getO const return y; y21:53:08 例2:非虚成员函数 class CGraph{ int x,y; public: CGraph(int xx,int yy){ x = xx; y = yy;} ~CGraph(){ } void Draw(CDC &dc) { dc.TextOut(x,y,"This is a Graph Object"); } int getX()const{return x;} int getY()const{return y;} };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有