Originally Posted by
MacGyver
Don't use char arrays unless you want to get into dynamic memory (At this level, I don't think you want to). Use std::string instead.
Currently you have an array named array of char *'s. That means each element of the array isn't a char, but a pointer to a char. This could be fine, except your char *'s aren't pointing anywhere significant and it's amazing it works as well as it does. You have to allocate memory and then copy. Otherwise, you need a two dimensional char array to hold everything (and even that might not work). As I said earlier, std::string is probably the best way to go about it.
Don't use void main(). Use int main().