-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtriangle.h
More file actions
executable file
·74 lines (66 loc) · 1.16 KB
/
triangle.h
File metadata and controls
executable file
·74 lines (66 loc) · 1.16 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//triangle.h
#ifndef triangle_h
#define triangle_h
#include <iostream>
#include <string>
#include <cmath>
#include <ctime>
#include <vector>
using namespace std;
const int w = 26;
class Triangle
{
private:
float area;
float perimeter;
public:
string name;
string units;
float x_max;
float x_min;
float y_max;
float y_min;
int n;
char back;
char line;
char shape_inside;
char canvas[w][w];
string previous_time;
float x1;
float x2;
float x3;
float y1;
float y2;
float y3;
float a;
float b;
float c;
Triangle();
void print_info();
void print_menu();
void calc_area();
void calc_a();
void calc_b();
void calc_c();
void calc_perm();
void case2();
string get_units();
void get_Date();
void print_Date();
void max_x();
void min_x();
void max_y();
void min_y();
void paint_background();
void setn();
void draw_line(float x1, float y1, float x2, float y2);
void set_back(char back1);
void set_line(char line1);
void print_tri();
void set_can(char canvas1[w][w]);
void fill_in_shape(int x, int y);
void set_shape_inside(char tri_inside1);
float get_perimeter();
float get_area();
};
#endif