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

PLEASE HELP V IMPORTANT the answers I input were just so I could see other questions.
What property is used to rewrite (x + 2)(y + 4z) as y(x +2) + 4z(x + 2)? Associative Property of Addition Commutative Property of Addition Distributive Property
Which factor is most likely to contribute to tabaco use?
Explain how institutionalized racism differs from interpersonal racism (racism occurring between two individuals who are of equal power) and how it operates des
Help needed urgentlythe word missing or partially seen is oxygen ​ I forgot to put more pointa
A square has an area of 121 yd^2. What is the length of each side?
I will mark brainliest: ;​
PLEASEEE HELPPPPP How did the context of reconstruction impact opinions about immigration during Reconstruction?
The graph represents function 1 and the equation represents function 2: A graph with numbers 0 to 4 on the x-axis and y-axis at increments of 1. A horizontal st
please urgent please beg