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

List two factors that might cause an organism to restrict its use of a resource.
how are the themes and topics different
What are good book to read from war times about family / adoption / giving up of children
If x^5y^4z^2 <0 , which of the following must be true? I xy <0 II yz <0 III xz <0
a piece of wood is 180cm long, Tom cuts it into three pieces in the ratio 2:3:4 Work out the length of the longest piece
A pack of 9 toilet rolls costs £4.23 A pack of 4 toilet rolls costs £1.96 Which pack gives the better value for money? You must show all your working.
Locate the gerund and identify its use.Wrestling alligators seems both foolish and dangerous.
A pack of 9 toilet rolls costs £4.23 A pack of 4 toilet rolls costs £1.96 Which pack gives the better value for money? You must show all your working.
What is HIV and the causes
If x^5y^4z^2 <0 , which of the following must be true? I xy <0 II yz <0 III xz <0