diff options
author | lshprung <lshprung@yahoo.com> | 2021-01-07 10:05:49 -0800 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2021-01-07 10:05:49 -0800 |
commit | 3836ff9bb3360242fd27c58ad83c73ea7356f3bb (patch) | |
tree | 7574fb834ca59c41854139f2f5d9b2ebba747492 /01-05.md | |
parent | 64123cb1cb10e210b23146237cab5ee81f9c6311 (diff) |
Post-class 01/07
Diffstat (limited to '01-05.md')
-rw-r--r-- | 01-05.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |