char* ???

Started by
10 comments, last by Sand_Hawk 22 years, 4 months ago
Notice that in C++ (unlike C) when you pass an array to a function it acts like a pointer.

Making the replace function make more sense
Advertisement
Its generally bad practice to allocate memory in a function without also freeing it in that function. Unless you are using a class and the destructor deletes it.

This topic is closed to new replies.

Advertisement