Computer Science, asked by ramramhadpad, 6 months ago

compiler ignores the line while executing the program fill in the blanks


Answers

Answered by hkadityab517
1

Answer:

In C++, if we need to read few sentences from a stream, the generally preferred way is to use getline() function. It can read till it encounters newline or sees a delimiter provided by user.

Here is a sample program in c++ that reads four sentences and displays them with ” : newline”

Similar questions