summaryrefslogtreecommitdiff
path: root/01-05.md
diff options
context:
space:
mode:
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)