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

whoever answers i’ll mark brainliest
What is Cinderellas concept of beauty
In what year was the Spanish King able to prove that the world was indeed round?​
Scienceeee pleaseeee helppp meee What can cause pollution in ground water? flooding car and truck exhaust temperature inversions organic waste and toxic indust
Work out the value of (-/-5)2 X (-/-3)2
so couldn't read the previous tutors question sadly. probably threw it into a equation graphic. I CAN'T READ GRAPHICS LIKE THAT since I am blind. So here is the
Which elements are best known for helping performers memorize an epic poem?
What is the value of f(-6) if f(x) = ™X - 4?
WHOEVER ANSWERS CORRECTLY W STEP BY STEP GETS BRAINLIEST
6. Reread lines 131-147 and identify a simile then explain its meaning. (in the story another place another time . )