Computer Science, asked by devika12321, 1 year ago

what is the use of iostream in CPP

Answers

Answered by Anonymous
2
Like the cstdio header inherited from C's stdio.h, iostream provides basic input and output services for C++ programs. iostream uses the objects cin , cout , cerr , and clog for sending data to and from the standard streams input, output, error (unbuffered), and log (buffered) respectively.
Answered by Annyatamaa
1

Before answering the question, let me tell you something, EACH AND EVERY syllable u use has to be first understood in coding. Remember, programmers  KNOW WHAT THEY ARE DOING AND WHY.

Some people tend to memorize programs but that doesn't help u in the long run. So I really approve of your asking the meaning of WHY u r writing this.

You might have heard terrifying complicated versions of this word, but don't worry, it is actually very simple.

C++ has got several objects. For example, iostream library has got the objects cin, cout, etc ( Hope u know the basics ). Take another example of the char library,which has character objects.

When we include these in our code, the Integrated Development Environment(IDE) or even if you are working on command prompt directly, know which objects u want. That's all, hope u understood.

Keep coding, have errors, drive them out, and ENJOY!

Similar questions