www.pudn.com > wordchanger.zip > Sentence.h, change:2007-06-18,size:1147b
// Sentence.h: interface for the Sentence class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SENTENCE_H__6EBE6D7A_B4AB_4864_820A_B376206DEB8B__INCLUDED_)
#define AFX_SENTENCE_H__6EBE6D7A_B4AB_4864_820A_B376206DEB8B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Word.h"
#include "FileIO.h"
class Sentence
{
private:
Sentence *link;
Word *head;
char sentence[400];
int number;
int char_count;
int total_word_count;
bool replace_flag;
public:
void print_word_to_file(FileIO &f);
void print_sentence_to_file(FileIO&);
void replace_word_step(char*, char*);
void replace_word(char*, char*);
void del_word_step(char*);
void del_word(char*);
int get_charcount();
void fix_sentence();
char* getsentence();
int get_num();
void set_num(int);
void sort();
void make_word_link();
Sentence* getlink();
void setlink(Sentence*);
void setsentence(char*, int);
void print_sentence();
Sentence();
virtual ~Sentence();
};
#endif // !defined(AFX_SENTENCE_H__6EBE6D7A_B4AB_4864_820A_B376206DEB8B__INCLUDED_)