通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
有如下程序,运行这个程序的输出结果是()。
#include<iostream> using namespace std; class Test{ public: Test(){} Test(const Test& t){cout<<1;} }; Test fun(Test &u){Test t=u;return t;} int main(){Test x,y;x=fun(y);return 0;}