电子宠物C++程序报告书.docxVIP

  • 95
  • 0
  • 约1.61万字
  • 约 34页
  • 2020-12-17 发布于天津
  • 举报
电子宠物 C++程序设计》 报告书 姓 名 高鹏 指导教师 隋旭峰 、概要设计 列举需要实现的主要函数; 1、pet(int a=0,int h=0,int t=0,int m=0,int he=0,int st=15) // 基类构造函 行为函数 2、void action(int act,int w,int emg) // 3、void drink() // 喂水函数 4、void doctor() // 看医生函数 5、void touch(); // 抚摸函数 6、void fun(); // 玩耍函数 7、void p2(); // 饥饿、口渴以及心情随时间的变化函数 8、void show(); // 各个数值的输出函数 9、void emergency(); // 各种特殊状态函数 10、void feed() // 喂食函数 11、void period(int t) // 时间函数 12、int weather() // 天气函数 13、virtual void train() // 训练函数 14、int adopt() // 领养函数 15、int raise(int select) // 饲养函数 16、void instruction // 饲养说明 17、void petshop(int select) 列出宠物类的属性和方法,以及兔子、马、牛(选

文档评论(0)

1亿VIP精品文档

相关文档