I have some sort of dictionary file that looks like this:
UTM University of Tennessee at Martin
UMD University of Maryland
It is a 3 letters acronym followed by the definition, separated by newlines. In total the file has 9282 definitions.
My questions are:
1) What would be the best way to store this definitions? Should I place them in a map, in a vector, store them in an array, leave them in a txt file and scan it for the acronym i need ? Other? Speed is key here. 2) Depending on your answer, what functions should i be using in order to lookup the acronym and then to retrieve just the definition?
Thanks in advance for your help.
EDIT / New Related Question: If i didn't want my application to depend on an external txt file, what would be the best way to do it?