adsense


Thursday, 26 November 2015

C++ LANGUAGE DISCONTINUOUS NAMESPACES

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button



C++ LANGUAGE DISCONTINUOUS NAMESPACES





Discontinuous Namespaces 


A namespace can be defined in several parts and so 
a namespace is made up of the sum of its separately 
defined parts. The separate parts of a namespace can 
be spread over multiple files. 

So, if one part of the namespace requires a name 
defined in another file, that name must still be 
declared. Writing a following namespace definition 
either defines a new namespace or adds new elements 
to an existing one: 

namespace namespace_name { 
   // code declarations 
} 


No comments: