![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
how to implemen the Find funtion in the text editor to locate a word in a document???
an object oriented C++ set of classes and use them to reproduce the similar function as find function in text editor like " notepad or Word"
the program should have the ability to read a text file and store the texts in a hash table. should keep track the location of each word in the reading process before place the word in the hash table The program should have the ability to list out the location of the target word, in this case, the line and column number of the first letter of the target word. Besides, it also informs the word position in the line. If there are multiple entries of a target word, you should list out the location of all of them. anyone can help me for completing this program? Last edited by allen1984us; Mar 8th, 2005 at 6:34 AM. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
did ya try anything yet? Unfortunately we don't really do people's homework for them. Show us what ya got and if you run into problems we can help you out. But yes, all this is very possible in C++.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
i don't howto read the text file and place it into the hash table ...is that any possible solution to fix it ?
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
Divide and conquer... start by reading data from a file.
Try this link: http://www.cplusplus.com/doc/tutorial/tut6-1.html -Read and Output the file to the screen. -Create hash table -Instead of writing it to the screen, write it to the hash table.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
thnanks a lot ...i will try it 1st..
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|