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

does 3 times 9.99 give me 29.97?
¿Cuál es el valor de 0.1561 redondeado a la décima más cercana? A 0.15 B 0.16 C 0.1 D 0.2
PLZZZZZZ HURYYYYY How did American Indians in general respond to the presence of early French explorers and settlers? Check all that apply. They resisted Frenc
Question 3 2 points Which of the following is 0.5 as a fraction in simplest form?​
Can someone please Solve 20-2x(4+2)
Solve. 4 + x/7 = 2 A) -14 B) 10 C) 12 D) 42
The laws that established an official system of slavery in the American colonies stated that children could not be born into slavery. allowed slaves to go free
____are compounds that produce H+ ions in solution.
How many Calories are there in 4600 Joules?
What would your first decision be if you were elected president?