Commit f2fe2349 by albrat

Update header.h

parent 9bfc9e90
Showing with 20 additions and 21 deletions
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment