so, if i typed 'yellow', the program would tell me 'bananas, lemons'. if i typed citrus, the program would tell me 'lemons, oranges'. if i typed in 'orange sweet', the program would tell me 'peaches'.
i'm not asking you to code this out for me. my program is going to have more than four keywords, and some items of text will have more associated keywords than others. i just don't have the first idea how to start this, and i'm not sure what to look for, as i'm self-taught and fairly novice. a point in the right direction would be great!
@illusionist - by text, i mean strings, but it'd be something that i'd cout when prompted, (ie: Hello, world!).
thanks everyone for the input! i'm going to look into all these options. my final product is probably going to have between twenty and thirty keywords. it's essentially going to be a "search engine" for a catalogue of different entries. i'm building an rpg, and i'm using this to sort abilities based on keywords (fire, ranged, cc, passive, etc). i'll probably have to employ an and gate somewhere, because if i type in three keywords, i want it to print entries that have all three keywords.