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

Use technology or a z-score table to answer the question. The weights of boxes of rice produced at a factory are normally distributed with a mean of 20 ounces a
Describe how you would simplify the given expression. (20x^5y^2/5x^-3y^7)^-3
complete the equation of the line.​
What was the primary role of slaves in most societies?
Solve 10x-4y=15 for y.
Find and label the measures of each of the three missing angles, A, B and C, below. Lines I and M are parallel.
What ingredient is the ""toad"" in a classic english ""toad in the hole""?.
Inefficient problem solvers go through the same cycle as efficient problem solvers, but with a low level of stress. Select one: True False
the sum of interior angle of a regular Pentagon in 540 degree find the interior angle​
On a bond paper, craft your resume. Your task is to write a resume for an internship opportunity as partial fulfillment of your specialized subject in the Senio