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 is required in a society for democracy to work
Pls help!!! Thank you! (((:
If...then...because... hypothesis help!!!!!? can you please help me make an if...then...because... hypothesis with this problem: "How does the amount of water y
what does jumping scale mean​
who is the owner of microsoft company​
please answer these questions
if log 55 = 1.74 , what is the value of log1000 55 ?
10 points plz help Escribe este imperativo negativamente: ¡Di la verdad! Tell your Spanish teacher: Go to class.
Read the entry on Jonas Salk from Compton's Encyclopedia/The Britannica School Edition, and answer the question beneath the text. Compton's Encyclopedia Jonas
What can you conclude about perpendicular lines that are drawn in the coordinate plane? (Assume the lines are not aligned horizontally and vertically).