单选题 有如下程序:
#include <iostream>
using namespace std;
class Sample
friend long fun(Sample s);
public:
Sample(long

【正确答案】 C
【答案解析】[解析] 通过调用友元函数,实现求解n!的算法。sum=5!+4!+3!+2!。