Commit f2fe2349 by albrat

Update header.h

parent 9bfc9e90
Showing with 20 additions and 21 deletions
#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
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