I have seen some c++ where there is code as follows:
myText = "This is the first part";
my Text = "This is the second part";
My concern is first is this correct? What happens to the pointer myText when the code goes out of scope? Shouldn't myText be initialized somehow first? I've never seen this done this way and also Visual Studio will spit out warnings.
Any suggestions as the proper way to code the above?