word.cpp

来自「第一次写的」· C++ 代码 · 共 50 行

CPP
50
字号
// Word.cpp: implementation of the Word class.
//
//////////////////////////////////////////////////////////////////////

#include "Word.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


Word::~Word()
{

}

void Word::ChanCont(string strToken)
{
	strcpy(this->cont,strToken.data());
}

void Word::ChanWType(int type)
{
	this->WType=type;
}

void Word::ChanXY(const int chax,const int chay)
{
	xend=chax;
	xbeg=xend-strlen(cont)+1;
	y=chay;
}

char * Word::ReturnCont()
{
	return this->cont;
}

int Word::ReturnWType()
{
	return this->WType;
}

void Word::ReturnXY(int &beginx,int &endx,int &chay)
{
	beginx=xbeg;
	endx=xend;
	chay=y;
}

⌨️ 快捷键说明

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