问题 填空题

下面程序的运行结果是 【10】
#include<iostream>
using namespace std;
class count static int n;
public:
count()

n++;

static int test()

for(int i=0;i<4;i++)
n++;
return n;
;
int count::n = 0;
int main() cout<<count :: test()<<" ";
count c1, c2;
cout<<count :: test()<<end1;
return 0;

答案

参考答案:4 10

选择题
单项选择题