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

how do basic facts and patterns help me multiply a number by a multiple of 10
how do you factor the expression 45c+10d?
Jesus was born in Bethlehem, according to: Matthew Mark Luke John
Which is better a 8 pound bag of dog food for 7.40 or a 4 pound bag of dog food for 5.38
Please define resting heart rate and target heart rate and explain why it is important to know both when developing a fitness plan?
ponce de leon crossed what ocean?
rolls are being prepared to go to the grocery stores divide 72 rolls into two groups so the ratio is 3 to 5
According to quindlen, “slavery and sweatshops, the burning of crosses” illustrate america's
Plate tectonics suggests that the_____ floats and moves on the _______
how did the expansion of settlers in the united states affect native americans