Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caraun
/
kodunetooI
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
48ac7858
authored
Feb 28, 2023
by
caraun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
6a6c3a24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
main.c
main.c
0 → 100644
View file @
48ac7858
#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
;
}
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