This is a discussion on what is name space? within the C and C++ Programming forums, part of the Software Development category; hi, what is namespace,wt necessary implement namespace in C++ Thanks, Prasath.K...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Namespaces Namespaces allow to group entities like classes, objects and functions under a name. This way the global scope can be divided in "sub-scopes", each one with its own name. The format of namespaces is: namespace identifier { entities } The example is: // namespaces #include <iostream> using namespace std; namespace first { int var = 5; } namespace second { double var = 3.1416; } int main () { cout << first::var << endl; cout << second::var << endl; return 0; }
__________________ J.Vijayanand |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database space-saving functions available in php | vigneshgets | PHP Programming | 1 | 01-18-2008 04:20 AM |
| Why is there extra space before or after my table? | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-27-2007 03:40 AM |
| web space | jeyaprakash.c | Web Design Help | 3 | 05-22-2007 08:35 PM |
| Comment Space for Site | nhoj | Web Design Help | 7 | 05-01-2007 06:32 AM |
| Perl: Disk Space | pranky | Perl | 0 | 02-24-2007 01:07 AM |