func: static void goodB2G() int count ; map < int , int > countMap ; count = - 1; countMap [ 0 ] = count; countMap [ 1 ] = count; countMap [ 2 ] = count; goodB2GSink ( countMap ); void goodB2GSink(map<int, int> countMap) int count = countMap [ 2 ] ; const char * filename = "output_good.txt" ; if ( count > 0 && count <= 20 )  pFile = fopen ( filename , "w+" ); if ( pFile )  fclose ( pFile ); 