面向对象程序设计作业

面向对象程序设计作业,第1张

23. //

24.cin

25.MAIN

26.复合

27.>>

28.#include

29.#

30.

31.a i++ i

32.0 0 2 3 x!=y x=y

33.10,20

34.class Rectangle {

private:

int width

int height

public:

Rectangle(int w,int h): width(w),height(h){}

~Rectangle(){}

int Circumference(){return width*2 + height*2;}

int Square(){return width*height}

}

35.求10个100以内的质数

1.

The

initial

weight

of

goods:

0

The

total

weight

of

goods:

85

2.

v1

=

(2,2)

v2

=

(5,4)

v3

=

v1

+

v2

=

(7,6)

3.

n

=

1,

X

=

12

n

=

2,

X

=

34

n

=

1


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7734024.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-09
下一篇2023-04-09

发表评论

登录后才能评论

评论列表(0条)

    保存