/主函数 int main() { double AllSalary=0; /数据初始化 Init(); /工资求和 AllSalary Sum(); /输出工资总和 cout<<"The sum of all salaries in this month is:"<<AllSalary<<endl; return 0; }//主函数 int main() { double AllSalary = 0; //数据初始化 Init(); //工资求和 AllSalary = Sum(); //输出工资总和 cout<<"The sum of all salaries in this month is: "<<AllSalary<<endl; return 0; }