void fun(char* pstr)
{//注意:该函数只针对字符串中全是数字的情况,如果有其它字符,请重新判断处理
if(NULL == pstr)
return;
int strlength = strlen(pstr);
if(strlength <= 0)
return;
int *arr = new int[strlength+1];
memset(arr,0, strlength + 1);
int i = 0;
while(*(pstr + i) != '\0)
{
arr[i] = *(pstr + i) - '0';
++i;
}
for(i =0; i <= strlength)
cout<cout< }