Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG-material-public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Yue Wu
PROG-material-public
Commits
ffc68f6b
Commit
ffc68f6b
authored
1 year ago
by
dali662d
Browse files
Options
Downloads
Patches
Plain Diff
Delete 05_aufgabenmodul.f95
parent
c2314c9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sonderuebung/WiSe23-24/SU08_2023_12_12/05_aufgabenmodul.f95
+0
-61
0 additions, 61 deletions
Sonderuebung/WiSe23-24/SU08_2023_12_12/05_aufgabenmodul.f95
with
0 additions
and
61 deletions
Sonderuebung/WiSe23-24/SU08_2023_12_12/05_aufgabenmodul.f95
deleted
100644 → 0
+
0
−
61
View file @
c2314c9e
module
aufgaben_mod
use
zeit_mod
use
wichtel_mod
implicit
none
private
public
::
aufgabe
,
GET
,
PUT
,
change_zeit
type
aufgabe
character
(
len
=
20
)
::
name
character
(
len
=
50
)
::
beschreibung
type
(
zeit
)
::
soll
! notwendige time zum vollenden
type
(
zeit
)
::
habe
! gearbeitete time
end
type
interface
GET
module
procedure
einlesen_aufgabe
end
interface
interface
PUT
module
procedure
ausgeben_aufgabe
end
interface
interface
change_zeit
module
procedure
change_zeit_habe
end
interface
contains
subroutine
einlesen_aufgabe
(
task
)
type
(
aufgabe
),
intent
(
out
)
::
task
write
(
*
,
*
)
"Was ist der Name der Aufgabe?"
read
(
*
,
*
)
task
%
name
write
(
*
,
*
)
"Was ist die Beschreibung der Aufgabe? Schreibe am Anfang und Ende ein ' oder "
,
'".'
read
(
*
,
*
)
task
%
beschreibung
write
(
*
,
*
)
"Wie lange dauert die Aufgabe? (hh, mm, ss.sss)"
call
get
(
task
%
soll
)
write
(
*
,
*
)
"Wie lange wurde schon an der Aufgabe gearbeitet? (hh, mm, ss.sss)"
call
get
(
task
%
habe
)
end
subroutine
einlesen_aufgabe
subroutine
ausgeben_aufgabe
(
task
)
type
(
aufgabe
),
intent
(
in
)
::
task
write
(
*
,
*
)
"Aufgabe: "
,
trim
(
task
%
name
),
" : "
,
trim
(
task
%
beschreibung
)
write
(
*
,
*
)
"Es wurden "
,
zeit_string
(
task
%
habe
),
" von "
,
zeit_string
(
task
%
soll
),
" gearbeitet."
end
subroutine
ausgeben_aufgabe
subroutine
change_zeit_habe
(
task
,
time
)
type
(
aufgabe
),
intent
(
inout
)
::
task
type
(
zeit
),
intent
(
in
)
::
time
task
%
habe
=
time
end
subroutine
change_zeit_habe
end
module
aufgaben_mod
\ 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