Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
mikolo
/
paaristoo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2fe2349
authored
Feb 13, 2023
by
albrat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update header.h
parent
9bfc9e90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
header.h
header.h
View file @
f2fe2349
#ifndef HEADER_H
#define HEADER_H
#
include <stdlib.h>
#
include <stdio.h>
#
define MAX_AUTOS 5
#
define MAX_OWNERS 5
typedef
struct
{
char
mark
[
256
];
char
mudel
[
256
];
char
numbrimark
[
6
];
int
valjalaskeaasta
;
char
kubatuur
[
256
];
}
autod
;
typedef
struct
{
char
mark
[
20
];
char
model
[
20
];
char
license_plate
[
20
];
int
year
;
char
engine_size
[
20
];
}
Auto
;
typedef
struct
{
char
inimeseisikukood
[
31
];
char
nimi
[
31
];
}
isik
;
int
kontrollifail
(
FILE
*
);
int
voimsam
();
int
koigevanem
();
int
koigeuuem
();
typedef
struct
{
char
id
[
20
];
char
name
[
20
];
}
Owner
;
void
load_autos
(
Auto
*
autos
);
void
load_owners
(
Owner
*
owners
);
void
find_most_powerful_car
(
Auto
*
autos
);
void
find_oldest_car
(
Auto
*
autos
);
void
find_newest_car
(
Auto
*
autos
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment