finding something in a string
Posted on 2004-09-18
I have a program that reads from a file and populates a struct. It contains DVD titles, directors, etc...
I am able to load the information from the text file into the struct no problems.
What i want to be able to do, is ask the user to input a string and for my function to search the title array in the DVDMovies struct and return any matches.
I would also like it to be case insensitive. That is:
If the user types in:
i should retreive:
rush hour 2
in all cases.
thanks in advanced,