Lektionsindhold -- Tastaturgenvej: 'u'  Kildeprogrammer i forrige lektion -- Tastaturgenvej: 'p'    Kursets hjemmeside

Kildeprogrammer
Input/Output og Filer

The Note Context in the rightmost column is only shown in case an annotated program exists. - You can navigate to the annotated program via the annotated slide view (= 'the note context').

Skrivning af tegn fra en tekststreng på en tekstfil.simple-write.cSlide contextText book context-
Læsning af tegn fra en tekstfil til en tekststreng.simple-read.cSlide contextText book context-
Et program der laver dobbelt linieafstand i en tekstfil.01_dbl_space.cSlide contextText book context-
Tilføjelse af tegn til en tekstfil.simple-append.cSlide contextText book context-
Læsning og skrivning af fil med r+ (kun på Unix).simple-read-update.cSlide contextText book context-
Output fra ovenstående program (kørt på Unix).first-file-keepSlide contextText book context-
Et program der læser en fil baglæns.file-backward.cSlide contextText book context-
Illustration af *.* field width og precision .printf1.cSlide contextText book context-
Illustration af directives med almindelige tegn, samt brug af scan width.scanf1.cSlide contextText book context-
Et program der læser ikke-blanke liner fra en fil og udskriver disse på standard output.non-blank-lines.cSlide contextText book context-
Et andet program der adskiller alfabetiske og numeriske afsnit i en tekst - læser fra stdin.alph-num-sep-1.cSlide contextText book context-
Et andet program der adskiller alfabetiske og numeriske afsnit i en tekst - læser fra en streng - virker ikke.alph-num-sep-2.cSlide contextText book context-
Et andet program der adskiller alfabetiske og numeriske afsnit i en tekst - læser fra en streng - virker!.alph-num-sep-3.cSlide contextText book context-
Programmet der udskriver bøger på en output fil.book-write-prog.cSlide contextText book context-
Programmet der indlæses bøger fra en input fil.book-read-prog.cSlide contextText book context-
Header filen book-read-write.h.book-read-write.hSlide contextText book context-
Implementationen af biblioteket - book-read-write.c.book-read-write.cSlide contextText book context-
Compilering af programmerne.book-io-compilationsSlide contextText book context-
Skrivning af en struct til en binær fil.fw2.cSlide contextText book context-
Tilsvarende læsning af en struct fra en binær fil.fr2.cSlide contextText book context-
Skrivning af en struct med et pointer felt til en binær fil.fw1.cSlide contextText book context-
Tilsvarende læsning af en struct fra en binær fil - virker ikke.fr1.cSlide contextText book context-

Genereret: Onsdag 7. Juli 2010, 15:13:10