What is the problem that the C++ namespace facility solves?

What will be an ideal response?

A namespace is a collection of names (definitions of constants, variables, functions
and classes) that can be made available in a scope by command. This prevents
libraries from preempting names and so preventing use of these names by a
programmer who is a user of the library. In large program development this facility permits different teams of programmer to use, identical names for different purposes yet avoid conflict.

Computer Science & Information Technology

You might also like to view...

Windows Live Messenger is an instant messaging program

Indicate whether the statement is true or false

Computer Science & Information Technology

Introduce specialization/generalization concepts into the ER model shown in Figure 13.11 and described in Exercise 12.13 to show the following:



(a) The majority of parking spaces are under cover and each can be allocated for use by a
member of staff for a monthly rate.
(b) Parking spaces that are not under cover are free to use and each can be allocated for use
by a member of staff.
(c) Up to twenty covered parking spaces are available for use by visitors to the company.
However, only members of staff are able to book out a space for the day of the visit. There is no charge for this type of booking, but the member of staff must provide the visitor’s vehicle
license number.

Computer Science & Information Technology