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

Air consists mainly of four gases. One sample taken from Honolulu exerts a total pressure of 760.0 mmHg. Nitrogen exerts 585.2 mmHg, oxygen exerts 144.4 mmHg, a
Answer both pictures please
List two ways in which the actor selected to play the role of Aaron Burr showed extreme dedication to the role
what fraction is equivalent to negative 3 over 2​
Because of Dido and Aeneas' love, Aeneas begins to believe Carthage could be: A. A Greek trick B. Italy C. an enemy city D. New Troy
!UPDATE! Get ready for a HUGEEEE surprise coming up! Hint: Points. LOTS OF POINTSSSS!
I need help with this​
A cannonball is launched with an initial speed of 20 m/s. Calculate the maximum height the ball could reach.
Substitution is replacing a variable with an expression it is equal to. True or False
⚠️10 points ⚠️ ⚠️Please help me ASAP!!! ⚠️