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

. In the apothecary system, the symbol fl ℥ represents a/an A. pound. B. grain. C. fluid ounce. D. dram
Hi, i need someone really really good with Spanish to help me with a packet in Spanish tomorrow.. Please help when you can. Thanks. I will post the picture tomo
Congress forms a conference committee in order to:
Calculate simple interest earned on a deposit of $1000 at a rate of 3% for 10 years.
Carly needs $1,800 to buy a used car. She has already saved $1,065. She earns $12.25 per hour working as a supermarket stockperson. How many hours does she need
A box of 15 cookies costs $9. What is the cost for 1 cookie?
Why would advancements in technology affect globalization
which is not a characteristic of minerals A. are solids with a fixed shape and volume B. are organic in nature C. are naturally occuring D. have a definite chem
​ Quadrilateral ABCD ​ is inscribed in this circle. What is the measure of angle C?
Please need help on this one