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
Container registry
Model registry
Operate
Environments
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
Walter, Wolfgang
PROG-material-public
Commits
68cb3e80
Commit
68cb3e80
authored
7 years ago
by
Felix Hilsky
Browse files
Options
Downloads
Patches
Plain Diff
add text for first uebung for opening, editing, compiling first program
parent
98a452d3
Branches
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
einfuehrung
+59
-0
59 additions, 0 deletions
einfuehrung
with
59 additions
and
0 deletions
einfuehrung
0 → 100644
+
59
−
0
View file @
68cb3e80
Terminal öffnen (Strg + Alt + T)
Wir befinden uns in ~ = /home/s123456/ = Persöhnlicher Ordner
ls
ls -a
. = aktueller Ordner
.. = übergeordneter Ordner
cd Dokumente
ls
Um Ordnung zu halten, legen wir einen Ordner für die Übung an
mkdir uebung1
cd uebung1
gedit rundung.f95
Jetzt ist das Terminal blockiert. Schließe gedit:
Strg + C (beendet aktuell laufendes Programm)
Alternative:
gedit rundung.f95 &
in gedit:
PROGRAM rundung
IMPLICIT NONE
END PROGRAM rundung
Speichern (Strg + S)
im Terminal:
ls
in gedit ergänze:
WRITE(*,*) 'Hallo Welt'
Speichern (Strg + S)
Unser 1. Programm ist fertig. Compile it!
im Terminal (! bietet Autovervollständigung von Befehlen und Dateien mit Tab):
f95 -o rundung rundung.f95
ls
Wir sehen, dass eine neue (ausführbare) Datei erstellt wurde. Führe sie aus:
./rundung
noch nett zu wissen: in gedit kann man die Einrückungsweite von Tabs einstellen
\ 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