diff options
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) |