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

explain the shift of power from kings to nobles during the middle ages
the smaller of two numbers is 2 less than 1/3 the larger. this sum of the two numbers is 50. find the value of the numbers
Simplify expression: 3^{−(4a+1)} −3^{−(4a−1)} + 3^{−4a}
how to solve linear equations by substitution?5x+2y=9x+y=-3
If a function f is continuous for all x and if f has a relative maximum at (-1, 4) and a relative minimum at (3, -2), which of the following statements must be
Solve by Elimination.x + 2y = 73x - 2y = -3
An example of a stateless nation in the middle east is provided by who?
what advances did the early Chinese make?
A coin rolls across the floor at an angular speed of 4 rotations per second. What is its speed in degrees per second? Hint: One full rotation equals 360 degrees
What is the square root of pie times 9 Plus 44 X 60+89