# 第五周任务三

#include <iostream>
#include <cmath>

using namespace std;
class Box
{
public:
void volume();
void area();
void set();
Box (int h = 18,int w = 20,int len = 36):height(h),width(w),length(len){}
private:
double length;
double width;
double height;
};
int main()
{
Box a[5] = {

Box(10,12,15),
Box(15,18,20),
Box(16,20,26),
};

a[4].set();

cout << "the volume of a[0] is: " << endl;
a[0].volume();
cout << "the area of a[0] is: " <<  endl;
a[0].area();

cout << "the volume of a[0] is: " << endl;
a[1].volume();
cout << "the area of a[0] is: " << endl;
a[1].area();

cout << "the volume of a[0] is: " << endl;
a[2].volume();
cout << "the area of a[0] is: " << endl;
a[2].area();

cout << "the volume of a[0] is: " << endl;
a[3].volume();
cout << "the area of a[0] is: " << endl;
a[3].area();

cout << "the volume of a[4] is: " << endl;
a[4].volume();
cout << "the area of a[4] is: " << endl;
a[4].area();

system("pause");

return 0;
}

void Box::area()
{
double ar;

ar=2*(length * height + length * width + height * width);

cout << ar << endl;

}

void Box::volume()
{
double vol;

vol = height * width * length;

cout << vol << endl;
}

void Box::set()
{
cin >> height >> length >> width;
}


#### machine-learning第五周 上机作业

2016-01-22 15:32:49

#### coursera机器学习课程第五周——课程笔记

2017-11-13 18:29:52

#### Coursera-吴恩达-机器学习-（第5周笔记）Neural Networks——Learning

2018-01-15 20:04:38

#### Coursera—machine learning(Andrew Ng)第五周编程作业

2017-11-13 16:25:48

#### 第五周 任务三

2012-03-25 21:06:55

#### 第五周 任务三

2012-03-19 18:28:55

#### 第五周任务（三）

2012-03-20 17:18:37

#### 吴恩达机器学习笔记_第五周

2016-05-15 11:43:00

#### Coursera机器学习-第五周-Neural Network BackPropagation

2016-05-22 22:17:14

#### 斯坦福大学(吴恩达) 机器学习课后习题详解 第五周 神经网络

2018-03-22 11:44:26