mesg_accounting ctrl_recv; // ctrl message received
accounting(): comp_amount(0.0) { }
};
- accounting acc;
+ accounting acc; // use a structure so that it is
+ // automatically initialized a
+ // construction
void add_comp_amount(double amount) { acc.comp_amount += amount; }
void add_data_send_mesg(double amount) {