【请教】C++中引用运用于结构,这个代码中定义的第三个函数怎么解释??
#include <iostream>#include <string>
using namespace std;
struct free_throws
{
string name;
int made;
int attempts;
float percent;
};
void display (const free_throws & ft);
void set_pc (free_throws & ft);
free_throws & accumulate (free_throws & target,const free_throws & source);
请问 声明free_throws & accumulate (free_throws & target,const free_throws & source);这个函数时,free_throws & 中&在这的作用是什么,是代表返回值是引用么?我不用&似乎也可以???