Problem Solving with C++, Student Value Edition
Problem Solving with C++, Student Value Edition
10th Edition
ISBN: 9780134543680
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 12.2, Problem 9STE
Program Plan Intro

Namespace:

  • Namespace is a group of name definitions.
    • It contains 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 names defined in the standard library files that user use such as “iostream” and “sdtdlib”.
  • If the user do not put the code in some exact namespace, then then code in a namespace called “global namespace”.
    • In this namespace, the directive “using” does not used.
  • 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
What is the connection between a reference and a pointer?
In Java Create a Cat object passing in the gender and name to the constructor: uses overload Cat constructor
Design your own java console application about any valid problem that the application must solve the application must use arrays loops inheritance constructors and information hiding must be in a form of a report the console
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
    Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT