📄 word.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -