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

what’s an example of a climograph
2. How can feeling alone impact how we feel about ourselves?
who here knows what as oc is and wants to make one?? "yes" or "no"
Which element of the poem "103 Korean Martyrs" makes it the most like a narrative poem? (20 points)
mutations whats the answer
(Help! I would appreciate it!) Question: Which Kingdom/dynasty do you believe was the best, explain why and use evidence. (10 sentences) Choices: 1. Silla Kingd
Water flows through a pipe of radius 0.025 m at 1.5m/s. What is the volume flow rate?
If you were writing a film review of the latest children's cartoon movie, which personal experience could guide your inquiry and focus your writing? A) your pas
WHAT IS longitudinal and transverse waves?
what does it mean infinitive???