📄 cat.h
字号:
// ***************************************************************
// Cat version: 1.0 ? date: 12/03/2006
// -------------------------------------------------------------
// Cat.h
// -------------------------------------------------------------
// Copyright (C) 2006 - All Rights Reserved
// ***************************************************************
//
// ***************************************************************
#include "animal.h"
#include <string.h>
//-------------------------------------------------------------
#ifndef _CAT_H_
#define _CAT_H_
//-------------------------------------------------------------
class Cat:public Animal{ //包括类型、颜色、体重和喜爱的食物
public:
Cat(){}
Cat(char* t ,char* c,char* f ,int w){
strcpy(s_Type,t);
strcpy(s_Color,c);
strcpy(s_Food,f);
n_Weight=w;
}
// ~Cat(){
// cout<<"cat destructor!"<<endl;
// }
void ShowMe();
};
//------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -