Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Informatik 2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wadi.T
Informatik 2
Commits
7c3d7d36
Commit
7c3d7d36
authored
2 years ago
by
T.Wadi
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix
parent
fd049200
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
main.c
+8
-10
8 additions, 10 deletions
main.c
menu.c
+1
-0
1 addition, 0 deletions
menu.c
test.exe
+0
-0
0 additions, 0 deletions
test.exe
tools.c
+7
-5
7 additions, 5 deletions
tools.c
with
16 additions
and
15 deletions
main.c
+
8
−
10
View file @
7c3d7d36
...
...
@@ -9,7 +9,7 @@
#define NUMBER_OF_MENU_ITEMS 7
void
main
()
int
main
()
{
int
choice
;
char
*
menuTitle
=
"CD-Verwaltung Deluxe"
;
...
...
@@ -17,8 +17,7 @@ void main()
"Sortieren"
,
"Auflisten"
,
"Programm beenden"
};
printLogo
();
delay
(
2
);
clearScreen
();
delay
(
3
);
do
{
...
...
@@ -51,11 +50,10 @@ void main()
break
;
}
}
while
(
choice
!=
7
);
return
0
;
}
This diff is collapsed.
Click to expand it.
menu.c
+
1
−
0
View file @
7c3d7d36
...
...
@@ -9,6 +9,7 @@ int getMenu(char *menuTitle, char **menuItems, unsigned short numberOfMenuItems)
{
clearScreen
();
puts
(
menuTitle
);
printLine
(
'='
,
50
);
for
(
unsigned
int
i
=
0
;
i
<
numberOfMenuItems
;
++
i
)
{
printf
(
"%d. %s
\n
"
,(
1
+
i
),
*
(
menuItems
+
i
));
...
...
This diff is collapsed.
Click to expand it.
test.exe
+
0
−
0
View file @
7c3d7d36
No preview for this file type
This diff is collapsed.
Click to expand it.
tools.c
+
7
−
5
View file @
7c3d7d36
...
...
@@ -56,10 +56,10 @@ void printLogo ()
{
while
(
!
feof
(
titel
)){
fgets
(
output
,
150
,
titel
);
printf
(
"%s"
,
output
);
printf
(
"%s"
,
output
);
}
puts
(
"
\n
"
);
f
re
e
(
titel
);
f
clos
e
(
titel
);
}
else
{
puts
(
"Logo not found
\n
"
);
...
...
@@ -72,10 +72,10 @@ void delay(unsigned int number_of_seconds)
{
// Converting time into milli_seconds
int
milli_seconds
=
1000
*
number_of_seconds
;
// Storing start time
clock_t
start_time
=
clock
();
// looping till required time is not achieved
while
(
clock
()
<
start_time
+
milli_seconds
)
;
...
...
@@ -89,4 +89,6 @@ void printLine(char zeichen, unsigned int limit)
printf
(
"%c"
,
zeichen
);
}
puts
(
"
\n
"
);
}
\ No newline at end of file
}
/**********************************************************/
/**********************************************************/
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
register
or
sign in
to comment