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

Does god waits for us to come to Him for help with sin. True or false?
How can one differentiate between potential and potential difference????​
how much heat energy is needed to raise the temperature of 50g of lead by 4.0°c​
could someone please help me! I’ve been trying to figure this out
Why are all the transition elements metallic?
An experiment involves rolling two dice and counting the number of 6s.FInd the experimental probability obtaning
pls help its for my final
It’s a sound you will probably never hear, a sickened tree sending out a distress signal. But a group of scientists has heard the cries, and they think some ins
What is the best renewable energy source for the future out of these? Wind Geothermal Tidal Hydroelectricity Solar
What is the 1619 PROJECT of America ? Describe 10-15 points of interest related to the PROJECT. ​