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 of the following best describes the circuit shown below? A. Combination B. Series C.
how much cooler are sunspots than the sun
What was the main reason for the Indian wars during the second half of the 19th century?
b - 12 = 24 what is b
(sin3t+cos3t)/(cos3t-sin3t)=? Please help
Which class of organic compound is least likely to be used as an organic solvent? aldehyde ketone alkyl halide ether
Polygon ABCDE rotates 45° clockwise about point F to produce polygon FGHIJ as shown. What is mBCD?
how many muscles make up the quadriceps?
identify the object of the preposition my plan today is to study and then takw a walk by the river
"What are the missing reasons in the proof? Given:▱ABCD with diagonal line segment BD Prove: Triangle ABD is congruent to triangle CDB Statements: Line segm