scott_ch

scott_ch : 字符串转 double 函数
3 年,3 月前

double convert(char s[],int begin,int end) { int i=begin,isfind=0,j,isneg=0; double sum=0,q=1; if(s[i]==’-‘) { i++; begin++; isneg=1; } if(s[i]==’+’) { i++; begin++; } ...查看全文