use explicit std:: qualification. : NameSpace « Language « C++






use explicit std:: qualification.

use explicit std:: qualification.
 

#include <iostream>

int main()
{
  double val;

  std::cout << "Enter a number: ";

  std::cin >> val;

  std::cout << "This is your number: ";
  std::cout << val;

  return 0;
}


           
         
  








Related examples in the same category

1.Namespace Demo: define a namespaceNamespace Demo: define a namespace
2.Namespaces are additiveNamespaces are additive
3.Demonstrate a namespaceDemonstrate a namespace
4.Some Namespace OptionsSome Namespace Options
5.A namespace can be nested within anotherA namespace can be nested within another
6.Using namespace to reference variables
7.Namespace code section
8.Use namespaces to wrap variables
9.Enclosure variables with namespace
10.Defines and tests namespaces.Defines and tests namespaces.