for(int i=0, len=strlen(str); i<=len; i++) { if( !(str[i] >= '0' && str[i] <= '9') && str[i] != '.' ) { s2[index2++] = parseDouble(s); s1[index1++] = str[i]; s = ""; } else { s += str[i]; } }
添加回答
举报
0/150
提交
取消