vc++如何创建程序-构造和继承

#include<iostream.h> //定义一个动物类 class Animal { public: void eat();//添加方法 { cout<<"animal eat"<<endl; } void sleep();//添加方法 { cout<<"animal sleep"<<endl; } void breathe();//添加方法 { cout<<"animal breathe"
相关文章
相关标签/搜索