#pragma once
#include <iostream>
#include <Windows.h>
#include <string>
#include <fstream>

using namespace std;


struct infa {
	string dwijok,
	transmis,
	podveska;
};


struct machine
{
	string marka;
	int god;
	string speed;
	string color;
	infa xarakt;
};

// 
int skolkovsegosvedeni(string fileenn);
void readfileandotkr(string fileenn, machine *q);
void pokaz(machine *q, int jj);
void RecordInFile(string fileenn, machine *q, int jj);
bool poiskponame(machine *q, int jj, string name);
bool poiskpogody(machine *q, int jj, int god);
void sortirovkaponame(machine *q, int jj);
void sortirovkapogody(machine *q, int jj);
bool Filtration(machine *q, int j, int la, int lb);
void Copy(machine *p, machine *h, int N);