CMPT 125 - Separate compilation & namespaces

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:41 PM on 4/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

5 Terms

1
New cards

Include guards

Prevents the same definitions from being compiled more than once

2
New cards

Separate compilation

Splitting a program across many files, each of which can be compiled without knowledge of what is in the other files. Only updated files are compiled, and the resulting object files are linked

3
New cards

Namespace

Collection of names that the compiler knows about. Allows for same function names.

4
New cards

using

automatically uses the namespace without needing to write the namespace before the function.

5
New cards

How to access just one name in a namespace

using [namespace]::[function name]