Fellow neowinians, I have a problem. I need to make a program in C to search through either a database or a file. However, since this database/file will have thousands of entries, I cannot simply use a for loop. The user enters a search phrase of up to 100 characters. Then I need to break this phrase up into groups of three characters and search every single entry in the database/file for each of those groups. Then, I need to break it up in 4 and do the same thing. Then 5. Then 6. Until the entire phrase is one group. The entries have a forename and a lastname, however, each of those may have one or more words in them. Could someone please shed some light on me. I have absolutely no idea how to do this. Thx in advance. BTW, if you need more info, please PM me or send me an email super.serge@gmail.com
Question
super_serge
Fellow neowinians, I have a problem. I need to make a program in C to search through either a database or a file. However, since this database/file will have thousands of entries, I cannot simply use a for loop. The user enters a search phrase of up to 100 characters. Then I need to break this phrase up into groups of three characters and search every single entry in the database/file for each of those groups. Then, I need to break it up in 4 and do the same thing. Then 5. Then 6. Until the entire phrase is one group. The entries have a forename and a lastname, however, each of those may have one or more words in them. Could someone please shed some light on me. I have absolutely no idea how to do this. Thx in advance. BTW, if you need more info, please PM me or send me an email super.serge@gmail.com
Link to comment
Share on other sites
14 answers to this question
Recommended Posts