Well to make things easier on yourself, you could use the <string.h> or <string> if you are using namespaces. then you could just use an array of strings and not worry about that char as string BS. try this site.
http://www.experts-exchange.com/Prog..._10355710.html
It might help.