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
#define HEADER_H
#
include <stdlib.h>
#
define MAX_AUTOS 5
#
include <stdio.h>
#
define MAX_OWNERS 5
typedef
struct
typedef
struct
{
{
char
mark
[
20
];
char
mark
[
256
];
char
model
[
20
];
char
mudel
[
256
];
char
license_plate
[
20
];
char
numbrimark
[
6
];
int
year
;
int
valjalaskeaasta
;
char
engine_size
[
20
];
char
kubatuur
[
256
];
}
Auto
;
}
autod
;
typedef
struct
typedef
struct
{
{
char
id
[
20
];
char
inimeseisikukood
[
31
];
char
name
[
20
];
char
nimi
[
31
];
}
Owner
;
}
isik
;
int
kontrollifail
(
FILE
*
);
int
voimsam
();
int
koigevanem
();
int
koigeuuem
();
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