Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prog I nzh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tht_krisztian
Prog I nzh
Commits
00141422
Commit
00141422
authored
Dec 2, 2013
by
tht_krisztian
Browse files
Options
Downloads
Patches
Plain Diff
Modulozva2.0
parent
4145c627
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
receptor/beolvasofv.c
+2
-2
2 additions, 2 deletions
receptor/beolvasofv.c
receptor/main.c
+7
-5
7 additions, 5 deletions
receptor/main.c
receptor/receptor.h
+2
-1
2 additions, 1 deletion
receptor/receptor.h
with
11 additions
and
8 deletions
receptor/beolvasofv.c
+
2
−
2
View file @
00141422
...
...
@@ -297,7 +297,7 @@ void kiir(Lista_rec *lista)
//A hozzvalknak foglalt dinamikus memria terletet felszabadtja
void
szabadit_hozzavalok
(
Recept
*
eleje
)
void
szabadit_hozzavalok
(
Recept
*
strazsa
)
{
#ifdef TESZT
fprintf
(
stdout
,
"Szabadit_hozzavalok:
\n
"
);
...
...
@@ -305,7 +305,7 @@ void szabadit_hozzavalok(Recept *eleje)
int
db
=
0
;
Recept
*
mozgo_rec
;
Hozzavalo
*
mozgo_hoz
,
*
kov
;
for
(
mozgo_rec
=
eleje
->
kovetkezo
;
mozgo_rec
->
kovetkezo
!=
NULL
;
mozgo_rec
=
mozgo_rec
->
kovetkezo
)
for
(
mozgo_rec
=
strazsa
->
kovetkezo
;
mozgo_rec
->
kovetkezo
!=
NULL
;
mozgo_rec
=
mozgo_rec
->
kovetkezo
)
{
for
(
mozgo_hoz
=
mozgo_rec
->
hozzavalok
->
eleje
->
kovetkezo
;
mozgo_hoz
->
kovetkezo
!=
NULL
;)
{
...
...
This diff is collapsed.
Click to expand it.
receptor/main.c
+
7
−
5
View file @
00141422
#ifndef INCL
UD
ES
#ifndef INCLES
#define INCLUDES
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -12,12 +12,12 @@ int main()
{
//debugmalloc_naplofajl("dmalloc.txt");
Lista_rec
receptek
;
int
i
;
int
i
,
exi
=
1
;
menu
fomenu
;
fomenu
=
alap
;
while
(
fomenu
>=
0
&&
fomenu
<
4
)
while
(
fomenu
>=
0
&&
fomenu
<
5
&&
exi
)
{
printf
(
"
\n
Udvozlom a Receptor programban!
\n
"
);
printf
(
"Udvozlom a Receptor programban!
\n
"
);
printf
(
"Valasszon a felsorolt lehetosegek kozul:
\n
"
);
printf
(
"1. Recept fajlok betoltese.
\n
"
);
printf
(
"2. Rendelkezesre allo alapanyagok megadasa:
\n
"
);
...
...
@@ -44,11 +44,13 @@ int main()
kiir
(
&
receptek
);
fomenu
=
alap
;
break
;
default
:
case
kilep
:
szabadit_hozzavalok
(
receptek
.
eleje
);
//szabadit_elkeszites(receptek.)
szabadit_receptek
(
receptek
.
eleje
);
exi
=
0
;
break
;
}
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
receptor/receptor.h
+
2
−
1
View file @
00141422
...
...
@@ -11,7 +11,8 @@ typedef enum menu {
alap
=
0
,
betolt_adatok
=
1
,
alapanyagok_beker
=
2
,
kereses
=
3
kereses
=
3
,
kilep
=
4
}
menu
;
typedef
enum
beolvasas
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment