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

Find the area of a polygon using the given apothem Plz anwser, will mark brainest!!
2x + 2y = -2 3x -2y =12
Nancy wants to find out how the steepness of a hill's slope affects the amount of soil that erodes from it. She has soil, a long pan, and a pile of books with w
Seven candidates are running for three different class offices: president, vice president, and secretary. In how many ways can the offices be filled with these
Find the greatest common factor of 12 w' and 8w
Please tell the class that they must have the exams completed in two hours is this first person or second person
Y=-3x+4 find the missing value
Under the Florida constitution Florida voters have to power to
Traditional Chinese opera is popular amoung the countrys varied art forms
"He asked me, " What are you doing at the weekend?" in reported speech ​