摘要:
COLORREF RGB(BYTEbyRed,// red component of colorBYTEbyGreen,// green component of colorBYTEbyBlue// blue component of color);用16进制写 阅读全文
posted @ 2014-03-28 20:51
皮皮uu
阅读(1084)
评论(0)
推荐(0)
摘要:
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();} 阅读全文
posted @ 2014-03-28 20:37
皮皮uu
阅读(200)
评论(0)
推荐(0)

浙公网安备 33010602011771号