www.pudn.com > pl0.zip > Word.h


#ifndef __WORD_H 
#define __WORD_H 
 
#include "string" 
#include     
using namespace std; 
 
class Word   
{ 
private: 
	int WType;            //单词类型 
	char cont[30];        //单词内容 
	int xbeg;             //单词开始位置 
	int xend;             //单词结束位置 
	int y;                //单词所在行 
public: 
	Word() 
	{ 
		strset(cont,'\0'); 
		xbeg=0;xend=0; 
		y=0; 
	} 
	~Word(); 
	void ChanWType(int type);                                 //修改类型 
	void ChanCont(string strToken);                           //修改内容 
	void ChanXY(const int chax,const int chay);               //修改位置 
	int ReturnWType();                                   //返回类型 
	char * ReturnCont();                                 //返回内容 
	void ReturnXY(int &beginx,int &endx,int &chay);           //返回坐标 
}; 
 
#endif // word.h