1- What kind of Stream Manipulators c++ has. And which type of headers they are use. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

1- What kind of Stream Manipulators c++ has. And which type of headers they are use.

2- What is the advantage of using Manipulators in c++ program. 3- Enumerate Stream Manipulators Headers

21st Feb 2017, 9:02 PM
Zeyad Sharo
Zeyad Sharo - avatar
1 Answer
+ 1
istream and ostream. these can be overloaded to input and output specific objects. these objects are usually user defined classes. ex: you would overload the ostream << operator for a student class, this way you just have to write cout << s1. instead of s1.get.... same for the istream. you can customize user input and create object from that or even reading in a file. hope this answers what you were trying to ask.
23rd Feb 2017, 5:19 AM
Michael Szczepanski
Michael Szczepanski - avatar