|
-
April 12th, 2005, 04:41 PM
#3
Re: Allocate Memory
Also, please post your entire class and the program you are running to test it. Post only a small main() program that duplicates the problem.
Did you write a copy constructor and assignment operator for your string class? This is probably where your problem is.
Also, if you don't have to do this, again, use std::string. It is already written, so there is no need to reinvent the wheel.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|