
December 10th, 2012, 12:46 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
If you are going to need to search the list of words quickly, I'd declare a hash map structure to store the list of words and the data that is associated with each word. And within the data structure, I'd use a dynamic array structure for the array of indicators and the category list.
You could use a library such as Apache's APR library, that already has a lot of this code (hashes, dynamic arrays etc.) implemented for you and it is cross-platform as well. See http://apr.apache.org/ for details.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|