++



main() :

#include "TextQuery.h"

int main()

{

TextQuery tq;

tq.build_up_text();

tq.query_text();

}

- build_text_map()  , doit() 6.14:

inline void

TextQuery::

build_text_map()

{



retrieve_text();

separate_words();

filter_text();

suffix_text();

strip_caps();

build_word_map();

}

- query_text() 6.14. . query_text() , -[19]:

void

TextQuery::query_text()

{

/* :

*

* text:

* query_text:

* caps:

*

*

* user_query: UserQuery,

*

*/

string text;

string caps( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" );

vector<string, allocator> query_text;

UserQuery user_query;

// UserQuery

NotQuery::all_locs( text_locations->second );

AndQuery::max_col( &line_cnt );

UserQuery::word_map( word_map );

do {

// ,

query_text.clear();

cout << " . , "

<< " .\n"

<< " ( ) ( . ).\n\n"

<< "==> ";

/*

* ,










Forekc.ru
, , , , , , , , , ,