Re: OT: Stupid c++
And now it isn't even getting past re-sizing the character array.
Why are you using character arrays at all? There is no reason to ever use them over string. Any time you need to pass a char* to a function, just use the .c_str() member on your string (aka: crazy_function(mystring.c_str()).
C++ is stupid.
C++ is neither stupid nor smart. It all depends on how you use it.
Why would the 'new' operator re-assign the same pointers?
I don't understand the question. New doesn't assign any pointers; it creates an object in the dynamic memory space (heap), and returns a pointer to it.
|