-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposition.h
More file actions
35 lines (26 loc) · 729 Bytes
/
position.h
File metadata and controls
35 lines (26 loc) · 729 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
34
35
#ifndef POSITION_H
#define POSITION_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "company.h"
#include "employee.h"
#define MAX_COMPANIES 50
#define MAX_POSITIONS 80
#define MAX_EMPLOYEES 100
#define MAX_INPUT_SIZE 250
// Abstraction of the structure of a company
typedef struct {
int id;
char title[50];
int companyId; // Link to a company
float minSalary;
float maxSalary;
} Position;
extern Position positions[MAX_POSITIONS];
extern int positionCount;
// Position functions--------------------
void addPosition(int id, int companyId, const char *title, float minSalary, float maxSalary);
void listPositions(int companyId);
void deletePosition(int id);
#endif // POSITION.H