- 5
- 0
- 约8.62千字
- 约 18页
- 2023-01-30 发布于江苏
- 举报
C ++ 程序设计
物
电子宠
资料
资料
仅供学习与交流,如有侵权请联系网站删除谢谢
仅供学习与交流,如有侵权请联系网站删除谢谢 PAGE 10
include iostream include stdlib.h using namespace std;
class pet //建立一个宠物类
{
public:
pet(int a=0,int h=0,int t=0,int m=0,int he=0,int st=15) //构造函数
{age=a;hunger=h;thirst=t;mood=m;health=he;step=st;}
int geta {return age;} /
原创力文档

文档评论(0)