summaryrefslogtreecommitdiff
path: root/01-05.md
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-01-07 10:05:49 -0800
committerlshprung <lshprung@yahoo.com>2021-01-07 10:05:49 -0800
commit3836ff9bb3360242fd27c58ad83c73ea7356f3bb (patch)
tree7574fb834ca59c41854139f2f5d9b2ebba747492 /01-05.md
parent64123cb1cb10e210b23146237cab5ee81f9c6311 (diff)
Post-class 01/07
Diffstat (limited to '01-05.md')
-rw-r--r--01-05.md11
1 files changed, 11 insertions, 0 deletions
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)