Problem Solving with C++ plus MyProgrammingLab with Pearson eText-- Access Card Package (9th Edition)
Problem Solving with C++ plus MyProgrammingLab with Pearson eText-- Access Card Package (9th Edition)
9th Edition
ISBN: 9780133862218
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 12.2, Problem 10STE
Program Plan Intro

Namespace:

  • Namespace is a group of name definitions such as definition of class and declaration of variable.
  • Generally, the namespace in C++ is used in the ways of “std” namespace. The “std” namespace contains each and every name defined in the standard library files that user use such as “iostream” and “sdtdlib”.
  • If the user do not place the code in some exact namespace, then the code in a namespace known as the global namespace.
    • The global namespace does not contain a “using” directive because users are continuously using the global namespace.
  • Consider a name that is defined in two namespaces. When the user tends to use the namespaces that are defined that is if the user uses both namespace, then the resultant that is obtained will contain error in it.

Blurred answer
Students have asked these similar questions
Write the function prototype of the void function named G() that takes an int reference parameter and two char parameters respectively Your answer
For the following function headers, determinethe number, and datatype of each parameterthat must be passed to the function. What is the return type on the function listed below? int factorial (int n) Number of parameters: Parameter types: double volts (int res, double induct, double cap) Number of parameters: Parameter types:
1) A void returning function with no parameters that prints "hello how are you?"  2) A function with a single parameter that is the radius of a circle and returns the area of a circle.  3) A function with a single parameter that is the radius of a circle and returns the circumference of a circle.  4) A function with a single parameter that is the radius of a sphere and returns the volume of a sphere.  5) A function with a two parameters, a radius and height that returns the area and volume of a cylinder.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning