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

the essential idea behind digital cite zen shop is that ____.
What’s the answer?????#6
Which of these sentences best describes the beliefs of a non-interventionist? O We should never go to war. O We should only go to war to stop genocide. We shoul
If you could live anywhere, where would it be?​
What is the voltage drop across the 10.0 2 resistor? OA. 2.00 V OB. 20.0 V OC. 10.0 V OD. 12.0 V
No spammers pls giving brainliest
Which substance may lower air temperatures after a volcanic eruption? lava sulfur dioxide carbon dioxide water vapor
What role do chemosynthetic bacteria play in deep-sea volcanic-vent ecosystems?
PLEASE PLEASEE ANSWER THE QUESTION IN THE PICTURE BELOW which form most quickly reveals the vertex? And what is the vertex??
The original source of genetic variation that serves as the raw material for natural selection is:.