-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLanguage.h
More file actions
32 lines (25 loc) · 798 Bytes
/
Language.h
File metadata and controls
32 lines (25 loc) · 798 Bytes
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
#ifndef TASK2_LANGUAGE_H
#define TASK2_LANGUAGE_H
//------------------------------------------------------------------------------
// Language.h - contains definition languages
//------------------------------------------------------------------------------
#include <stdexcept>
#include <string.h>
//------------------------------------------------------------------------------
// Structure summarizing all shapes.
class Language {
public:
int year;
std::string name;
// Input
static Language *InSt(FILE* file);
// Random input
static Language *InRnd();
// Output
void Out(Language &m, FILE* file);
// Get square
static double Average(Language &m);
// Swap function
static void Swap(Language &m1, Language &m2);
};
#endif