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
2ee546ab
Commit
2ee546ab
authored
2 years ago
by
T.Wadi
Browse files
Options
Downloads
Patches
Plain Diff
last changes
parent
bee92895
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Aufgabe7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build/CDVerwaltungDeluxDebug.exe.stackdump
+10
-10
10 additions, 10 deletions
build/CDVerwaltungDeluxDebug.exe.stackdump
build/FinalCDS.xml
+0
-191
0 additions, 191 deletions
build/FinalCDS.xml
src/cds.c
+8
-1
8 additions, 1 deletion
src/cds.c
src/database.c
+1
-0
1 addition, 0 deletions
src/database.c
with
19 additions
and
202 deletions
build/CDVerwaltungDeluxDebug.exe.stackdump
+
10
−
10
View file @
2ee546ab
Exception: STATUS_ACCESS_VIOLATION at rip=00100403311
rax=0000000000000000 rbx=00000008000614DC rcx=0000000180243A80
rdx=00000000FFFFCE00 rsi=0000000000000020 rdi=000000000000000A
r8 =0000000800092120 r9 =0000000000000001 r10=0000000100000000
r11=0000000100403277 r12=00000000FFFFCC20 r13=00000000FFFFCC30
r14=0000000000000001 r15=0000000000000000
rbp=00000000FFFFCB50 rsp=00000000FFFFCB20
program=C:\Users\touil\OneDrive\Dokumente\Uni\informatik-2\build\CDVerwaltungDeluxDebug.exe, pid 1007, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
000FFFFCB50 00100403311 (000FFFFCB80, 00180320007, 001801B658A, 001004057A5)
000FFFFBFD0 001800620B7 (000FFFFC1D8, 00000000002, 00000000002, 000FFFFDE50)
00000000000 001800640F5 (00000000064, 00000000000, 000000002B8, 00000000000)
000FFFFC6E0 001801305E8 (00000000000, 00000000000, 00000000000, 00000000000)
00000000041 0018012BD1B (000FFFFC890, 00000000000, 00000000000, 001801514F8)
000FFFFCB50 0018012C125 (000FFFFCC30, 00000000001, 00000000000, 000FFFFCAF0)
000FFFFCB50 00180212C08 (0018022DD78, 00100405848, 000FFFFCAD0, 000FFFFCC30)
000FFFFCB50 00180213065 (00000000000, 00000000000, A000000FFFFCB08, 000FFFFCB20)
000FFFFCB50 001800D7FE8 (00100401DFE, 001004054C8, 00000000000, 0010000007A)
000FFFFCB50 0018018EFFB (00100401DFE, 001004054C8, 00000000000, 0010000007A)
000FFFFCB50 00100403359 (000FFFFCB80, 00180320007, 001801B658A, 001004057A5)
000FFFFCBD0 00100402BBD (00180049B21, 000FFFFCC30, 00100000002, 00180322FC0)
000FFFFCD30 00180049B8D (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0 00180047746 (00000000000, 00000000000, 00000000000, 00000000000)
...
...
This diff is collapsed.
Click to expand it.
build/FinalCDS.xml
+
0
−
191
View file @
2ee546ab
<Data>
<CD>
<Title>
Bravo Hits 2018
</Title>
<YearOfAppearance>
2018
</YearOfAppearance>
<Song>
<Title>
In My Mind
</Title>
<Interpret>
Dynoro
</Interpret>
<Duration>
00:03:21
</Duration>
</Song>
<Song>
<Title>
One Kiss
</Title>
<Interpret>
Harris, Calvin
</Interpret>
<Duration>
00:03:47
</Duration>
</Song>
<Song>
<Title>
These Days
</Title>
<Interpret>
Rudimental
</Interpret>
<Duration>
00:04:03
</Duration>
</Song>
<Song>
<Title>
Taki Taki
</Title>
<Interpret>
Snake, DJ
</Interpret>
<Duration>
00:03:52
</Duration>
</Song>
<Song>
<Title>
Solo
</Title>
<Interpret>
Clean Bandit
</Interpret>
<Duration>
00:03:27
</Duration>
</Song>
<Song>
<Title>
Bella Ciao
</Title>
<Interpret>
El Profesor
</Interpret>
<Duration>
00:03:17
</Duration>
</Song>
<Song>
<Title>
Rise
</Title>
<Interpret>
Blue, Jonas
</Interpret>
<Duration>
00:03:36
</Duration>
</Song>
<Song>
<Title>
Flames
</Title>
<Interpret>
Guetta, David
</Interpret>
<Duration>
00:04:24
</Duration>
</Song>
<Song>
<Title>
FRIENDS
</Title>
<Interpret>
Marshmello
</Interpret>
<Duration>
00:03:31
</Duration>
</Song>
<Song>
<Title>
Breathe
</Title>
<Interpret>
Jones, Jax
</Interpret>
<Duration>
00:03:19
</Duration>
</Song>
<Song>
<Title>
Nevermind
</Title>
<Interpret>
Lloyd, Dennis
</Interpret>
<Duration>
00:04:10
</Duration>
</Song>
<Song>
<Title>
Body
</Title>
<Interpret>
Luxury Remix, Loud
</Interpret>
<Duration>
00:03:50
</Duration>
</Song>
<Song>
<Title>
Only Thing We Know
</Title>
<Interpret>
Alle Farben
</Interpret>
<Duration>
00:03:58
</Duration>
</Song>
<Song>
<Title>
Jennie
</Title>
<Interpret>
Jaehn, Felix
</Interpret>
<Duration>
00:03:34
</Duration>
</Song>
<Song>
<Title>
Pray For Me
</Title>
<Interpret>
The Weeknd
</Interpret>
<Duration>
00:03:29
</Duration>
</Song>
<Song>
<Title>
Je ne parle pas francais
</Title>
<Interpret>
Namika
</Interpret>
<Duration>
00:03:14
</Duration>
</Song>
<Song>
<Title>
Magisch
</Title>
<Interpret>
Olexesh
</Interpret>
<Duration>
00:03:49
</Duration>
</Song>
<Song>
<Title>
Was du Liebe nennst
</Title>
<Interpret>
Bausa
</Interpret>
<Duration>
00:03:56
</Duration>
</Song>
<Song>
<Title>
Kiss And Make Up
</Title>
<Interpret>
Lipa, Dua
</Interpret>
<Duration>
00:04:17
</Duration>
</Song>
<Song>
<Title>
Anywhere
</Title>
<Interpret>
Ora, Rita
</Interpret>
<Duration>
00:04:01
</Duration>
</Song>
<Song>
<Title>
Barking
</Title>
<Interpret>
Ramz
</Interpret>
<Duration>
00:03:52
</Duration>
</Song>
<Song>
<Title>
Better Now
</Title>
<Interpret>
Post Malone
</Interpret>
<Duration>
00:03:27
</Duration>
</Song>
<Song>
<Title>
Happy Now
</Title>
<Interpret>
Zedd
</Interpret>
<Duration>
00:03:56
</Duration>
</Song>
<Song>
<Title>
Rooftop
</Title>
<Interpret>
Santos, Nico
</Interpret>
<Duration>
00:04:30
</Duration>
</Song>
</CD>
<CD>
<Title>
Tape
</Title>
<Interpret>
Mark Forster
</Interpret>
<YearOfAppearance>
2016
</YearOfAppearance>
<Song>
<Title>
Spul zurueck
</Title>
<Duration>
00:03:15
</Duration>
</Song>
<Song>
<Title>
Sowieso
</Title>
<Duration>
00:03:20
</Duration>
</Song>
<Song>
<Title>
Schoener Scherbenhaufen
</Title>
<Duration>
00:03:12
</Duration>
</Song>
<Song>
<Title>
Was Ernstes
</Title>
<Duration>
00:03:39
</Duration>
</Song>
<Song>
<Title>
Wir sind gross
</Title>
<Duration>
00:04:25
</Duration>
</Song>
<Song>
<Title>
Da faehrt ein Bus
</Title>
<Duration>
00:02:57
</Duration>
</Song>
<Song>
<Title>
Choere
</Title>
<Duration>
00:03:42
</Duration>
</Song>
<Song>
<Title>
Weiter
</Title>
<Duration>
00:03:14
</Duration>
</Song>
<Song>
<Title>
Willkommen zurueck
</Title>
<Duration>
00:03:21
</Duration>
</Song>
<Song>
<Title>
Natalie
</Title>
<Duration>
00:03:06
</Duration>
</Song>
<Song>
<Title>
Selfie
</Title>
<Duration>
00:03:20
</Duration>
</Song>
<Song>
<Title>
Die beste Nacht
</Title>
<Duration>
00:03:41
</Duration>
</Song>
<Song>
<Title>
Fuer immer forever
</Title>
<Duration>
00:03:09
</Duration>
</Song>
<Song>
<Title>
Fluesterton
</Title>
<Duration>
00:03:51
</Duration>
</Song>
<Song>
<Title>
Kogong
</Title>
<Duration>
00:04:22
</Duration>
</Song>
</CD>
</Data>
This diff is collapsed.
Click to expand it.
src/cds.c
+
8
−
1
View file @
2ee546ab
...
...
@@ -25,6 +25,8 @@ void createCD()
puts
(
"Erfassung einer neuen CD"
);
printLine
(
'='
,
50
);
sCD
*
CDData
=
calloc
(
1
,
sizeof
(
sCD
));
if
(
!
CDData
)
exit
(
0
);
(
CDData
)
->
numberOfSongs
=
0
;
getText
(
"Geben Sie bitte den Titel der CD ein:"
,
35
,
&
(
CDData
)
->
title
,
0
);
getText
(
"Geben Sie bitte den Interpreten ein:"
,
35
,
&
(
CDData
)
->
artist
,
1
);
...
...
@@ -66,7 +68,7 @@ void deleteCD()
{
puts
(
"No CD loaded or created to be delated!"
);
delay
(
2
.
0
);
return
;
return
;
}
while
(
CDData
)
{
...
...
@@ -80,6 +82,11 @@ void deleteCD()
puts
(
"Welche CD moechten Sie loeschen (0 fuer Abbrechen) ?"
);
scanf
(
"%u"
,
&
input
);
}
while
(
input
>
menuPoints
);
for
(
unsigned
int
i
=
1
;
i
<
input
;
i
++
)
{
CDData
=
CDData
->
next
;
}
deleteNode
(
&
first
,
CDData
);
...
...
This diff is collapsed.
Click to expand it.
src/database.c
+
1
−
0
View file @
2ee546ab
...
...
@@ -36,6 +36,7 @@ void loadCD(FILE *datei)
if
(
strncmp
(
zeilenAnfang
,
"<CD>"
,
4
)
==
0
)
{
sCD
*
CDData
=
calloc
(
1
,
sizeof
(
sCD
));
if
(
!
CDData
)
exit
(
0
);
loadedCDcounter
++
;
delay
(
0
.
1
);
printf
(
"° CD %.2i has been succefully loaded ....
\n
"
,
loadedCDcounter
);
...
...
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