A$ = B$ + C$
to concatenate two strings, yet in '98 on a P-II I find myself having to
write
A = (TCHAR *) malloc((strlen(B) + strlen(C) + 1) * sizeof(TCHAR));
strcpy(A, B);
strcat(A, C);
...
free(A); /* in all cases, even error cases - and if you forget, you
have a memory leak */
I mean, this is progress?? Finally now with STL I can once again write
A = B + C; // although "string A(B + C);" is probably more "C++ -
like"
At any rate, what will I find when my honeymoon with STL is over? Has anyone
on this list already had their heart broken by STL?
- Joe
Joseph S. Barrera III
http://research.microsoft.com/~joebar
Work: (415) 778-8227, Home: (650) 588-4801