As ZuK pointed out, there's not enough information to determine the root cause of your problem(s).
Having said that, start taking advantage of standard facilities such as std::string -- they'll make your life a lot easier.

P.S.: Debuggers are very useful tools.