摘要: Shape.h#ifndef SHAPE_H#define SHAPE_Hclass CShape{private: int color_; virtual void Draw();};class CRecttangle: public CShape{private: int height_; int width_; void Draw();};#endifShape.cpp#include "StdAfx.h"#include "Shape.h"void CShape::Draw(){ color_ = 0;}void CRecttangle::Dra 阅读全文
posted @ 2012-03-22 08:48 treemon 阅读(553) 评论(0) 推荐(0) 编辑