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 do canadians thing about health care?
PLEASE HELP !!!!!!! GEOMETRY
How many grams of hydrochloric acid will react completely with a block of gold that is 3.2 cm by 3.8 cm by 2.8 cm, if the density of gold is 19.3 g/ml?
According to a study of paddle sport accident statistics from 1995-2000, approximately half of all victims of canoeing and kayak related fatalities were doing w
Friends can __________. A. help you learn about yourself and how to get along with others B. show you a different aspect of the world C. give you a sense of be
La _____ es un vestido tradicional de México
Which religion did the Gupta Dynasty favor? Buddhism Christianity Hinduism Judaism
Why were pops singled out for regulation by the international community?
simplify this expression: 2/x-y + 3/x+y - 5/ y-x - 7x-9y/y^2-x^2
What did democritus and aristole think about the composition of matter