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

When Edna's great-grandfather returned from World War I, the family recalls that he would sometimes think that he heard gunshots or cannon fire and would dive f
is 0.21 greater than 0.27
Which of the following are square roots of —8 + 8i/3? Check all that apply.
my friend needs help!! anyone have an answer?​
A man is pushing a box of mass m along the ground with a force F. The coefficient of kinetic friction between the box and the ground is μk​. The box is accelera
A student spends 4.5 hours studying for a test. How much time is this equivalent to in seconds Select one: a)2,700 seconds b)16,200 seconds c)270 seconds d)6,48
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Iron nail sinks in water while a ship made of iron-steel floats in it. Why ?​
pls help math anser if your correct ok
Which solution set is graphed on the number line? 4-3-210