1#include <stdio.h>2#include <ctype.h>3#include <math.h>4#defineMAX_STR_LEN 10 + 55doublestrToDouble(charstr[]){6intstate=0;7doublesum1 =0.0;8doublesum2 =0.0;9intk=1;10intdigited=0;11intfuhao=1;12if(!str[0])return0;13for(inti=0;str[i];i++){14if(digited==0&&str[...