Реферат: Объектно ориентированое програмирование на С

a=1 b=1

S= 1 m^2 P=4 m d=1.41421 m

Rectangle is square.

Input a, b:

456.125

789.5452485

The constructor "rectangle(double, double)" worked.

Your rectangle:

a=456.125 b=789.545

S= 360131 m^2 P=2491.34 m d=911.829 m

Rectangle is not square.

Your rectangle is our now:

a=456.125 b=789.545

S= 360131 m^2 P=2491.34 m d=911.829 m

Rectangle is not square.

Repeat or quit?(r/q)...r

The destructor "~rectangle()" worked.

Our rectangle:

a=456.125 b=789.545

S= 360131 m^2 P=2491.34 m d=911.829 m

Rectangle is not square.

Input a, b:

0.4876

0.4876

The constructor "rectangle(double, double)" worked.

Your rectangle:

a=0.4876 b=0.4876

S= 0.237754 m^2 P=1.9504 m d=0.689571 m

Rectangle is square.

К-во Просмотров: 754
Бесплатно скачать Реферат: Объектно ориентированое програмирование на С