I'm new to C and I i have an assignment where I have to build a dictionary (Linked List). Basically the user inputs several words,year and their definitio likn this:
Example:
love_#2004#_LOVING
trade_#_2001_#_INVEST
etc...
Now what I need is to have a function that will scan the definition which is in UPPER CASE and give me back the word it relates to.
Example:
What word would you like to search?
Input: INVEST
Output: Found "INVEST" in the word "trade".
I was kind of answered to that question. It helped understanding what was done but it's unfortunately not enough.
The string i'm inputting is a full string that takes(word)__#__(year)__#__(DEFINITION)
I have an idea but i don't know how to code it exactly as I want it. But let me know what you think on the idea as well.
since every section is seperated by the "#" why not have a pointer to every word of my string before the "#" and print it seperately?
Example: trade_#_2001_#_INVEST
"INVEST" and "2001" are pointing to "trade"
Any ideas?