I need a program that indexes a speacially formated text file.
The file will look like this:
[login to view URL]
You will also need to put some words in categories, but the program will also be able to accept an index-help-file
Which will tell you the words that need to go into the categories and what words to skip
Looks like this:
//This is in a text file:
[noindex]
a I who am
yes good
[category]
mouse = computer windows laptop
car = automobile buick ford
//
The program may use:
the streaming libraries STL (iostream and fstream), but no other part from STL- (no containers classes)
will have to use null-terminated strings
Sample output:
[A]
after: 1, 4
For automobile, see car.
apple: 3, 5, 6,
[C]
car: 1, 2, 3, 4, 5, 6
Output must be alphabetically org.d
For testing purposes:
you must make a program that accepts as many words, pages, so the array that contains the words and pages will have to be able to resize as needed. Though there may only be very little "extra" space.
Must work in a Ubutu enviroment compiled with lastest ver of g++.
Will send complete instructions to whoever I award project to.