Look at the code below.
My question is; when i call the 2nd new statement does the previous class get deleted, or do i have todo that manually?
Code:
string A, B;
CT2CA* aTemp = new CT2CA( frmAdd->A );
A = string( *aTemp );
aTemp = new CT2CA( frmAdd->B );
A = string( *aTemp );
delete aTemp;
My question is; when i call the 2nd new statement does the previous class get deleted, or do i have todo that manually?