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

what decimal is equivalent to 500 thousandths and 8 hundredths?
Which of these components of a cell functions like the bones and muscles in the human body? A. chloroplasts B. ribosomes C. cytoskeleton D. cytoplas
Why did some people support Alien and Sedition Act event?
What type of verbal appears in the sentence? To win a game of chess, you must capture or trap the other king. Past participle Present participle Adverb infiniti
what is the estimate of 39% of 42
What is hardest stage to recover from in alcoholism
Which volcanic hazard can block the sunlight and temporarily cool the Earth’s surface?
Bacteria can develop mutations that provide them with resistance to antibiotic medications. Why would giving multiple antibiotics at once be less likely to crea
What two cell structures are found in plant cells but not in animal cells?
Who were the main supporters of ratification of the Constitution?