dog.h

来自「这是一个dos版的应用程序」· C头文件 代码 · 共 32 行

H
32
字号
// ***************************************************************
//  dog   version:  1.0   ? date: 12/03/2006
//  -------------------------------------------------------------
//  dog.h
//  -------------------------------------------------------------
//  Copyright (C) 2006 - All Rights Reserved
// ***************************************************************
// 
// ***************************************************************
#include "animal.h"
#include <string.h>
//-------------------------------------------------------------
#ifndef _DOG_H_
#define _DOG_H_
//-------------------------------------------------------------
class Dog:public Animal{  //包括类型、颜色、体重和喜爱的食物
public:
	Dog(){}
	Dog(char* t ,char* c,char* f ,int w){
		strcpy(s_Type,t);
		strcpy(s_Color,c);
		strcpy(s_Food,f);
		n_Weight=w;
	}
//	~Dog()
//	{
//		cout<<"Dog destructor!"<<endl;
///	}
	 void ShowMe();
};
//------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?