Try using string instead of char*