Commit 48ac7858 by caraun

Upload New File

parent 6a6c3a24
Showing with 33 additions and 0 deletions
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "funktsioonid.c"
int main(){
int N;
char nimi[256];
double hind;
int kogus;
double raha;
faili_nimi(nimi, "sisetame faili terve nime ");//sisesta faili nimin lause ja siis sisestatakse nimi
FILE *F1;//fail mida vajame, kus on andmed
F1=fopen(nimi,"r");//avame andmete lugemiseks faili kirp5sort
if (kontrolli_fail(F1) == 0)//kontrollime kas fail on olemas
{
printf("Pole faili.\n");
return 1;
}
N = counter(F1);
Toode tootejada[N];
loe_andmed(F1, &N);
loe_kaup(tootejada, F1); //loe kaubakirjed
print(tootejada, N);//prindi nimekiri esialgne välja
sort(tootejada, N);
print2(tootejada, N);
fclose(F1);
return 0;
}
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