-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInitialisation.h
34 lines (27 loc) · 1.04 KB
/
Initialisation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef INITIALISATION_H_INCLUDED
#define INITIALISATION_H_INCLUDED
#include"Validation.h"
void init(double &baseEdge, double &Height, double &blendSize, double &rotationAngle)
{
std::cout<<"Enter the value of base edge (between 10.0 and 25.0) : ";
std::cin>>baseEdge;
validationOfBaseEdge(baseEdge);
std::cout<<"Enter the value of room height (between 260.0 and 480.0) : ";
std::cin>>Height;
validationOfRoomHeight(Height);
std::cout<<"Enter the value of blend size (positive number smaller than base edge) : ";
std::cin>>blendSize;
validationOfBlend(baseEdge, blendSize);
std::cout<<"Enter the value of angle (between -60.0 and 60.0) : ";
std::cin>>rotationAngle;
validationOfAngle(rotationAngle);
}
void area_initialization(double &area){
std::cout<<"Enter the room area (in square meters): ";
std::cin>>area;
while(area < 0){
std::cout<<"Wrong value!\nEnter number greater than 0: ";
std::cin>>area;
}
}
#endif // INITIALISATION_H_INCLUDED