21 years, 11 months ago
Highlights
Quote:Original post by dalleboyQuote:Original post by arock99CString::CString(char *initialStr) { str = new char[strlen(initialStr+1)]; strcpy(str, initialStr);}That should read…
21 years, 11 months ago
Hi, The following code seems to work fine: CString *test; while (true) { test = new CString("Test"); delete test; } But when I put "CString *test" within the loop: while (true)…
21 years, 11 months ago
Latest Activity
Quote:Original post by dalleboyQuote:Original post by arock99CString::CString(char *initialStr) { str = new char[strlen(initialStr+1)]; strcpy(str, initialStr);}That should read:CString::CString(char
21 years, 11 months ago
Hi, The following code seems to work fine: CString *test; while (true) { test = new CString("Test"); delete test; } …
21 years, 11 months ago