What is ‘namespace’ ?
Suppose we want to develop an interactive cos(), sin(), ten() etc are to be used accepting argument in degree rather than argument in radians. Problem link these are normally solve by looking for another name e.g. the function name cosDegree() is define. C++ offers an alternative solution by allowing namespace we define, arias or regions in the code in which identifiers are a define which can’t conflict with existing name define else where.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment