Look at the string character by character.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Basically this problem is identifying "strings of interest" log / sin / cos / (x)
You use the strtok function to identify the start and end of these kind of strings
strtok modifies its target string. This is abad thing if you want to search multiple times over several delimiters.
In almost all cases strtok is the wrong tool to use when parsing input.
L7Sqr
Practically a Master Poster
657 posts since Feb 2011
Reputation Points: 201
Solved Threads: 124
Describe why. Lot's of answers here, and since you finished the course, you must know how to work with arrays. What's your real problem?
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944