Original Post
I have an object stored in a file. This object has a member std::string variable strName. In the constructor of this object, I obtain a char *Str which contains a string that I want to store in strName. But when I write strName = Str, the program crashes . Why? I think it''s probably because first I have to allocate some space for the strName. But if yes, how?
thanx