试题与答案

1.2×0.728的积,一定比1.2小.______.

题型:解答题

题目:

1.2×0.728的积,一定比1.2小.______.

答案:

由于0.728<1,则1.2×0.728<1.2.

故答案为:√.

试题推荐
题型:填空题

使用VC6打开考生文件夹下的工程test38_1,此工程包含一个源程序文件test38_1.cpp,但该程序运行有问题,请改正函数中的错误,使该程序的输出结果为: 2 is a factor of 10 源程序文件test38_1.cpp清单如下: #include <iostream.h> class myclass { /***************** found *****************/int n,d public:myclass(int i, int j){ n=i; d=j; }friend int factor( myclass ob); }; /***************** found *****************/ int myclass::factor(myclass ob) { /***************** found *****************/if(ob.n%ob.d) return 1;else return 0; } void main() {myclass ob1(10,2),ob2(13,3);if(factor(ob1)) cout<<"2 is a factor of 10\n";if(factor(ob2)) cout<<"3 is not a factor of 13\n"; }

查看答案
微信公众账号搜索答案