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 -5\8 / 9\10 a) -1\36 b) -45\80 c) -25\36 d) -9\16 / = divided \ = part of fraction
Tell me about early history about Jamestown
how did The roman republic influenced the constitution of the united states
A machine make 24 items in 8 minutes how many can it make in 14
The hypothesis that continents have moved slowly to their current locations is called
Caesar's fellow senator who is very protective of Roman republic is
What are three important documents to the us government?
How can you use connotative in a sentence?
Which of the following is a correct example of an indicative verb in a sentence? If I were a butterfly, I would have wings. Your hair might catch on fire. Give
Which side of the Earth is day and night and why?