func_code_string: #include <bits/stdc++.h>   using namespace std;   char s[1010], a[1010], p[1020];   int a1, a2, tot;   void cal() {     if (a[tot - 2] ==  . ) {       a2 += ((a[tot - 1] -  0 ) * 10 + (a[tot] -  0 ));       tot -= 3;     }     if (a2 >= 100) a2 -= 100, a1++;     int sum = 0;     for (int i = 1; i <= tot; i++)       if (a[i] !=  . ) sum = sum * 10 + a[i] -  0 ;     a1 += sum;   }   int main() {     scanf( %s , s + 1);     int len = strlen(s + 1);     for (int i = 1; i <= len; i++) {       if ((s[i] <  0  || s[i] >  9 ) && s[i] !=  . ) continue;       if ((s[i - 1] <  0  || s[i - 1] >  9 ) && s[i - 1] !=  . ) {         cal();         memset(a, 0, sizeof(a));         tot = 0;       }       a[++tot] = s[i];       if (i == len) cal();     }     int np = 0;     if (a1 == 0)       np = 1, p[1] =  0 ;     else {       int tmp = 0;       while (a1 > 0) {         p[++np] = a1 % 10 +  0 ;         tmp++;         if (tmp == 3) {           p[++np] =  . ;           tmp = 0;         }         a1 /= 10;       }     }     if (p[np] !=  . ) printf( %c , p[np]);     for (int i = np - 1; i >= 1; i--) printf( %c , p[i]);     if (a2) printf( .%02d , a2);     return 0;   }   