here a simple string class and how would you improve it ?
Anonymous
I said: use std::string then they said: «yeah, we should do that» but we are stuck with our string class. So i Looked at the class and: - it was doing malloc (strdup) in ctor, but delete in dtor. - was missing assignment operator - had a off by one error in one of the member - many errors likes that: very simple to find & fix
Check out your Company Bowl for anonymous work chats.