试题与答案

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

题型:单项选择题

题目:

有以下程序:
#include <iostream>
using namespace std;
class A

private:
int x,y;
public:
void set (int i,int j)

x=i;
y=j;

int get_y()

return y;

;
class box

private:
int length,width;
A label;
public:
void set(int 1,int w, int s,int p)

length=1;
width=w;
label.set(s,p);

int get_area()

return length*width;

;
int main()

box small;
small.set(2,4,1,35);
cout<<small.get_area()<<end1;
return 0;

运行后的输出结果是( )。

A.8

B.4

C.35

D.70

答案:

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

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

参考答案:C,D解析:解析:按接受产品的顺序情况分为外部顾客、内部顾客两类。

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