void
func()
{
CString *names=
new
CString[2];
CString *names_dim[5];
// 真正数组的情形
for
(
int
i; i<
sizeof
(names_dim)/
sizeof
(CString *); i++) {
names_dim[i] =
new
CString;
/*** your code here ***/
delete
names_dim[i];
}
/**** your code here ****/
delete
[] names;
// 不会出错的;我试过如果直接 delete names会出错
}