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

Kildeprogrammer
Pointers og Arrays

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').

Motivation for arrays - et stort antal simple variable.array-motivation.cSlide contextText book context-
Introduktion af arrays.array-intro-1.cSlide contextText book context-
Eksplicit array initialisering - kun i erklæringer.array-intro-2.cSlide contextText book context-
Erklæring og initialisering af et antal variable, hvoraf nogle er pointer variable.pointer-var.cSlide contextText book context-
Output fra programmet.pointer-var-output.cSlide contextText book context-
The variables i, j, p, q, r, and x.cbd268Slide context--
Illustration af pointervariable af forskellige typer - giver compileringsfejl.pointer-types-1.cSlide context--
Samme program - kan oversættes og køres.pointer-types-2.cSlide context--
Et forsøg på ombytning af to variables værdi uden pointere - virker ikke.swap_does_not_work.cSlide contextText book context-
En funktion der ombytter værdierne af to int variable.03_swap.cSlide contextText book context-
Output fra programmet.swap-output.cSlide contextText book context-
Illustration af pointertilgang til arrays.ptr-array.cSlide contextText book context-
Illustration af pointertilgang til arrays.array-ptr.cSlide contextText book context-
Output fra programmet.arrays-ptr-outputSlide contextText book context-
Et program hvor tabellen table tilgås via en pointer.array-intro-1-pointers.cSlide contextText book context-
Output fra programmet.array-intro-1-pointers-outputSlide contextText book context-
Function bubble som laver 'bubble sort' på arrayet a som har n heltalselementer.bubble_sort_no_printf.cSlide contextText book context-
Hele 'bubble sort' programmet - med løbende udskrift af arrayet.04_bubble_sort.cSlide contextText book context-
Erklæring af to pointere p og q samt en int i.two-pointers.cSlide contextText book context-
En funktion som tæller antallet af tegn i en streng.strlen-prg.cSlide contextText book context-
Et eksempel på indicering uden for indeksgrænserne i et array.array-bounds.cSlide contextText book context-
Erklæring, initialisering og to identiske gennemløb af et to dimensionelt array.twodim-array.cSlide contextText book context-
Illustration af statisk lagerallokering i C.static-alloc-ill.cSlide contextText book context-
Et kreativt forsøg på dynamisk allokering - ikke ANSI C.static-alloc.cSlide contextText book context-
ANSI C Oversættelse af programmet.ansic-compilationSlide contextText book context-
Et program der foretager dynamisk allokering af et array.06_dynamic_array.cSlide contextText book context-
Et program der dynamisk allokerer et to-dimensionelt array.array-allok.cSlide contextText book context-

Genereret: Onsdag 7. Juli 2010, 15:11:36