ashantimich1262 ashantimich1262
  • 02-03-2020
  • Computers and Technology
contestada

C++ Standard Library function ________, from the header, reads characters up to, but not including, a newline, which is discarded, then places the characters in a string.

Respuesta :

ijeggs
ijeggs ijeggs
  • 03-03-2020

Answer:

getline()

Explanation:

The getline() function in C++ programming language is found in the standard library belonging to the <string> header. It does a job similar to java's input.nextLine() method in the Scanner class which is to read a line of input and store in a String Variable. When this function is executes successfully, it will return a string comprising of characters including the newline but not with the terminatin null.

Answer Link

Otras preguntas

three structures of the internal ear
The term B.C.E: Question 3 options: stands for before common era or before common epoch and is often preferred as it doesn't reference Christian chronology. sta
4564345667777899999765432115×34
How is communism different from capitalism?
Hyperventilation during the preoxygenation phase of endotracheal intubation:
which of the following will not be useful in trying to correct spherical aberration?
Throughout the story, baba worries because amir never stands up for himself. when does this change?
Identify various role changes that occur during early and middle adulthood.
When two or more nations engage in free trade how is the standard living improved in the participating countries
A photon has an energy of 5.53 × 10–17 j. what is its frequency in s–1 (h = 6.63 × 10–34 j • s)?