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

What is the function of the Schwann Cells?
who was appointed as commander-in-chief of the colonial army
why did congress move quickly to pass the bill of rights
whicht hree major climate zones occur at certain latitudes
Do you need to have three indented paragraph to write a book report?
A gym membership costs $25 to join and $14 each month. write and use an algebraic expression to find the cost of the gym membership for 6 months.
thomas has a train collection.he was given 1 train as a gift, and he adds 2 trains per year. which of the graphs below represents thomas's train colection
Emily have 36 flowers she give ones flower to friend
the celebrated jumping frog of calaveras county begins with _____ point of view.
Factor completely 100x2 − 49. (7x − 10)(7x 10) (7x − 10)(7x − 10) (10x − 7)(10x 7) (10x − 7)(10x − 7)