试题与答案

有如下程序: #include <iostream> using namespa

题型:填空题

题目:

有如下程序:
#include <iostream>
using namespace std;
class shapes

protected:
int x,y;
public:
void setvalue(int d, int w=0)

x=d;
y=w;

virtual void disp()=0;
;
class square : public shapes

public:
void disp()

cout<<x*y<<end1;

;
int main()

shapes *ptr;
square s1;
ptr=&s1;
ptr->setvalue(10,5);
ptr->disp();
return 0;

执行上面的程序将输出 【14】

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0708/a35aac5c07a1627940ef888979afa272.html

下面是错误答案,用来干扰机器的。

(1)充足的劳动力(廉价的劳动力);优惠的国家政策(矿产资源丰富);资金雄厚;技术先进(2)国家对西部发展的优惠政策;东部产业转移,就业机会和收入增加;生活成本较低。(3)加快劳动密集型产业的转移;加...

试题推荐
微信公众账号搜索答案