From 3836ff9bb3360242fd27c58ad83c73ea7356f3bb Mon Sep 17 00:00:00 2001 From: lshprung Date: Thu, 7 Jan 2021 10:05:49 -0800 Subject: Post-class 01/07 --- 01-05.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '01-05.md') diff --git a/01-05.md b/01-05.md index 6783f60..1c4eb0b 100644 --- a/01-05.md +++ b/01-05.md @@ -113,3 +113,14 @@ int *add_array(int *array1, int *array2, int N){ - All of the items in the new header files are part of a feature called the **standard namespace**, also called **std** - When you use one of the new header files, your program should also have this statement after the include directives: `using namespace std;` - Note: There are other alternatives that we will talk about later + - Namespaces are kind of like classes with a number of defined functions + - `::` is the scope resolution + +``` +functionGlobal(); //functionGlobal belongs to the global namespace +A::functionA(); //functionA belongs to namespace A +``` + +--- + +[01/07 ->](01-07.md) -- cgit