Hi folks one of the dreaded newbies. I have checked the faq's, and searched all over the place, so hope some one can help.
I have to implement a KWIC (Keyword in Context) program in C
I have completed this in Perl, as the first part and now have to redo in C. My input is in a file like this
look in these sentences for ignore words
This produces 3 seperate fields, divided by "::"
I need to read the number in..store it..easy
I need to read in "::" and check to see if it is one..and disregard it
1. One problem I am having is how do I check characters against others?
2. Another, how do I get it to loop until it reaches the second set of "::" ?
3. The trickiest stuff the kwic index... Need to split up sentences,and check against each word for existence of keywords.
4. Also tricky, after keyword is identified, how do I replace it in the proper place in capitalized form.
Any advice appreciated. Esp on input and array manipulation..
Ach, I am nott that stuupit!