📄 def.h
字号:
// def.h: interface for the Definition class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DEF_H__6EAA9F9F_D200_4C50_AD46_0D6D9F8CD417__INCLUDED_)
#define AFX_DEF_H__6EAA9F9F_D200_4C50_AD46_0D6D9F8CD417__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
const int MAXMEANS = 10;
class Definition
{
public:
Definition() {}
Definition( char* word, char* def[] );
Definition& operator=( Definition& def );
virtual ~Definition();
public:
void PutWord( char* s );
char* GetWord() { return word; }
public:
void AddMeaning( char* s );
char* GetMeaning( int level );
public:
int GetnMeans() { return nMeanings; }
void Print();
private:
char* word;
char* meanings[ MAXMEANS ];
int nMeanings;
};
#endif // !defined(AFX_DEF_H__6EAA9F9F_D200_4C50_AD46_0D6D9F8CD417__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -