Hi,
Wrong forum I know, but the UNIX one is a bit dead. Can any of you MS guys help?
I am using GNU c++ string class. I have been copying strings in my code :
stringA = stringB;
This seems to do a shallow copy, as the address of the contents of the strings are the same.
How do I do a deep string copy?
Thanks.
Wrong forum I know, but the UNIX one is a bit dead. Can any of you MS guys help?
I am using GNU c++ string class. I have been copying strings in my code :
stringA = stringB;
This seems to do a shallow copy, as the address of the contents of the strings are the same.
How do I do a deep string copy?
Thanks.