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

Which two countries were the first to declare war on Germany in WWII?
Tasha believes that she can rewrite the diffrence 120 - 36 as a product of the GCF of the two numbers and another diffrence.Is she correct?
WRITE THIS NUMBER IN WORD FORM 310,763,136 AND100,203
What is the value of 1-18+25 if you subtract then add? If you add then subtract?Why is order of operations necessary?
Anyone know how to do this kind of algebra?  Compute the discriminants of the next two quadratic equations. Compare the result in (A) to that in (B). What do y
What is the coefficient of x in the expression x-2? Explain your reasoning.
1/7(x+21)=-6 answer ?
1/3(9x+27)-4=1/2(2x+54)
Deathvalley has an elevation of -282 feet to sea level explain how to use absolute value to describe the elevation of death valley as a positive integer.
Suppose that 2 scientists use different measurement systems in their work. What problems might arise if they shared their data?