c++怎样提取一个数组的前n个值并保存在CString对象当中?

如题所述

int n=4;
char a[]="abcdefg";
CString str;
char temp=a[n];
a[n]='\0';
str=a;
a[n]=temp;
温馨提示:答案为网友推荐,仅供参考
第1个回答  2007-05-23
for循环实现