func_code_string: #include <bits/stdc++.h>   int main() {     char s[5200] = {0}, next[5200] = {0}, p[5200] = {0}, t[5200] = {0};     while (scanf( %s , s + 1) != EOF) {       s[0] =  a ;       double sum = 0;       int f = 0;       while (sscanf(s,  %*[^0-9]%[0-9.]%[^ 0] , p, next) > 0) {         double num1 = 0, num2 = 0;         int len = strlen(p), flag = 0;         if (len > 3 && p[len - 3] ==  . ) {           sscanf(p + len - 3,  %lf , &num1);           flag = f = 1;         }         if (flag == 1) len = len - 3;         for (int i = 0; i < len; i++) {           if (p[i] ==  . ) continue;           num2 = num2 * 10 + (p[i] -  0 );         }         sum += num1 + num2;         strcpy(s, next);         memset(next, 0, sizeof(next));       }       sprintf(t,  %.2f , sum);       int len = strlen(t), k = 0;       char ans[5200];       if (f == 0) len -= 3;       if (f == 1) {         ans[k++] = t[--len];         ans[k++] = t[--len];         ans[k++] = t[--len];         if (ans[0] ==  0  && ans[1] ==  0 ) k = 0;       }       for (int i = len - 1, counts = 1; i >= 0; i--, counts++) {         if (counts % 3 == 1 && counts != 1) ans[k++] =  . ;         ans[k++] = t[i];       }       for (int i = k - 1; i >= 0; i--) printf( %c , ans[i]);       printf(  n );     }     return 0;   }   