What are streams in c++? | Sololearn: Learn to code for FREE!

+2

What are streams in c++?

I've googled alot ,Also tried SoloLearn's QNA search bar,But I'm not getting the term stream. What actually the istream/ostream strings are?I know they're input streams and output streams,But, I'm not getting it clearly, Please explain 🙏

5/22/2022 5:15:32 PM

Manav Roy

5 Answers

New Answer

+1

extraction means just reading as individuals. insertion is just putting values.. I made a sample here.. see this. hope it helps.. https://code.sololearn.com/cv7zCzg5UiMI/?ref=app

+2

Jayakrishna🇮🇳 "By treating the strings as streams we can perform extraction and insertion operation from/to string just like cin and cout streams." What are extraction and insertion?

+2

Jayakrishna🇮🇳 Thanks alot, It's helps me alot❤️

+1

A stream is sequence of characters used to transformed between program thread and input/output. It's just a flow of data. these have clear and simple explanations.. hope it helps....... https://www.softwaretestinghelp.com/stringstream-class-in-cpp/ https://www.educba.com/c-plus-plus-stream/ https://www.cprogramming.com/tutorial/c++-iostreams.html

+1

You're welcome..