函数accumulate()得返回struct XXX&引用才有效,否则只是给临时变量赋值
accumulate()
struct XXX&
请仔细看看,你的代码只把num进行想加,name没有改变所以输出,aa 和3,已经不是以前的值了