krissylee5077 krissylee5077
  • 21-08-2019
  • Computers and Technology
contestada

Class string belongs to which namespace?

A.
std

B.


C.


D.
All of the above

Respuesta :

Branta Branta
  • 26-08-2019

Answer:

A. std

Explanation:

Class string belongs to std namespace. Its complete representation is std::string. Besides string, std namespace also contains other standardized objects such as cout, cin, vector etc. If we use the declaration

using namespace std in our C++ program , then we can use string datatype directly without having to prefix it with std:: in the rest of the code. This aids in readability.

Answer Link

Otras preguntas

Pythagorean theorem. What would x be?
Please list and briefly describe three of the six tips for eating wisely.
The radius of a circle is 7.2 cm. Find the circumference to the nearest tenth. please help !
Evaluate: 63 + 7 X 4​
3/5 and 2/5 what is the common denomenator?
A decorator uses the expression 6s2 to model the minimum amount of fabric needed to cover an ottoman in the shape of a cube. If s=2 and the fabric is measured i
6^2 - 7 (10 - 5 ) = ?
1. Suppose you go to the beach in the morning on a sunny summer day. Explain the rate at which thermal energy is absorbed by the water, sand, and air during the
Hurry help it’s timed
Priscilla built a cabanet shaped like a rectangular prism the lenght of the base is 9 inchesand the width is 40 inches what is the area of the cabanet in square