题目内容
若有以下程序: #include <iostream> using namespace Std; class sample int i; publiC: sample() void setvalue(int m) i=m; void fun(int m) i+=m; void disp() cout<<i<<end1; ; int main() sample *ps; ps=new sample; ps->setvalue(20); ps->fun(5); ps->disp(); return 0; 程序运行后,输出的结果是( )。
查看答案
搜索结果不匹配?点我反馈