摘要:
COLORREF RGB(BYTEbyRed,// red component of colorBYTEbyGreen,// green component of colorBYTEbyBlue// blue component of color);用16进制写 阅读全文
摘要:
classshape{public:shape(){};virtualvoiddraw() //注意这里设置为虚函数{ 画图形;}};classrectangle : publicshape{public:rectangle(){};voiddraw(){ 画方形;}};classround : publicshape{public:round(){};voiddraw(){ 画圆形;}};voidmain(){shape * s;s = newrectangle();s->draw();s = newround();s->draw();} 阅读全文