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

an increase in skin cancer can be traced to a decrease in atmospheric
I need help please?!!!
Math sequences number patterns
A puppy and a kitten are 180 meters apart when they see each other. The puppy can run at a speed of 25 m/sec, while the kitten can run at a speed of 20 m/sec.
Liquid water absorbs energy from the sun. Some of the molecules on the surface gain enough energy to break away into a gaseous state. What process is described
What do you think it means if your freind stops hanging out with you and starts hanging out with new people
Why did Hadrian build a wall in northern Britain
What is true of acids? a.They are poor electrolytes. b.They have a pH above 9. c.They have a pH below 7. d.They have a strong affinity for H ions.
How did Portugal's actions help cause civil war in Angola?​
"once you learn to ride a bicycle, you never forget" pertains to __________ memory.