www.pudn.com > wordchanger.zip > Word.cpp, change:2007-06-18,size:840b
// Word.cpp: implementation of the Word class.
//
//////////////////////////////////////////////////////////////////////
#include "Word.h"
#include <cstring>
#include <iostream>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Word::Word()
{
link = NULL;
check = false;
}
Word::~Word()
{
}
char* Word::getword()
{
return word;
}
void Word::setword(char *wo)
{
strcpy(word, wo);
}
Word* Word::getlink()
{
return link;
}
void Word::setlink(Word *ptr)
{
link = ptr;
}
int Word::getorder()
{
return order;
}
void Word::setorder(int or)
{
order = or;
}
void Word::setcheck(bool che)
{
check = che;
}
bool Word::isChecked()
{
return check;
}