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

Compare diagram B to diagram A . How is it different
Price Variable Cost Fixed Cost Target Profit 80 65 450,000
What is the measure of angle GDR
Why was the American victory in the Battle of Saratoga a turning point in the Revolutionary War? It convinced Great Britain to negotiate for peace. It convinced
Which describes the positions on a horizontal number line?
Solve each equation: 5x=1
Is it true that African Americans lived lives that were "separate but equal" in the decades after Reconstruction?
Mrs. MaryAnn is giving treat sacks out for Valentines Day. She has 30 pencils and 42 smiley face stickers. Mrs. Maryann wants each treat sack to be identical wi
elements of stone henge, colosseum, pyramid, pantheon, castillo de loarre​
who Left New Jersey to start a colony because of religious persecution?