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 you calculate the initial speed given time and displacement? The question is: The longest kick in CFL history was 83.2m. If the ball remained in the air
express each number in fraction form before finding the inverse:7,10,1 3/4,
find the derivative of ((t^4-6)^3)*((t^3+6)^4)
while your finger is still pushing the coin, there are four forces acting on the coin: what are they?
What role does carbon dioxide play in plant life processes
Lily and julian start with the same number. Lily works out half the number and Julian works out 3 quarters The sum of their answers in 275 What was the startin
If a fair quarter is flipped 3 times . What is the probability of getting exactly three heads? round to the neast thoudsands.
why are quebec and ontario known as canadas economic heart
How many counting numbers are between 30 and 65, not including 30 and 65?
How do I write 4.76325 as a fraction?