题目内容

若有以下程序: #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; 程序运行后,输出的结果是( )。

A. 15
B. 20
C. 25
D. 30

查看答案
更多问题

对虚函数的调用有两种方式: 【11】 和 【12】 。

浸渍法可采用比较多的阳离子和非离子型表面活性剂,以提高洗净效果;还要求适当搅拌清洗液或晃动被清洗物等机械作用,在清洗钢铁件时温度可接近煮沸。( )

A. 对
B. 错

涂料的作用包括保护作用、装饰作用、标志作用和特殊作用。( )

A. 对
B. 错

粉末涂料应保存在阴凉、干燥、通风的环境里。( )

A. 对
B. 错

答案查题题库