-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctional.h
More file actions
33 lines (26 loc) · 753 Bytes
/
Functional.h
File metadata and controls
33 lines (26 loc) · 753 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
33
//------------------------------------------------------------------------------
// Functional.h - contains description of functional language
//------------------------------------------------------------------------------
#include <stdio.h>
#include "Rand.h"
#include <string.h>
//------------------------------------------------------------------------------
struct Functional {
enum type{
strict,
dinamic
};
type tip;
bool lazy;
double popularity;
int year;
char name[200];
};
// Input parameters from file.
void In(Functional &t, FILE* file);
// Random parameters.
void InRnd(Functional &t);
// Output
void Out(Functional &t, FILE* file);
// Get average of elements
double Average(Functional &t);