Top "Iostream" questions

The C++ iostream library is an object-oriented library that provides input and output functionality using streams.

Overload handling of std::endl?

I want to define a class MyStream so that: MyStream myStream; myStream << 1 << 2 << 3 << …

c++ overloading iostream manipulators endl
Why do C++ streams use char instead of unsigned char?

I've always wondered why the C++ Standard library has instantiated basic_[io]stream and all its variants using the char …

c++ types stream overflow iostream
Xcode 11.1: iostream' file not found

I just updated my MacBook Pro to macOS Catalina 10.15, and tried to compile and run a C++ command line program, …

c++ xcode iostream clang++ macos-catalina
Who architected / designed C++'s IOStreams, and would it still be considered well-designed by today's standards?

First off, it may seem that I'm asking for subjective opinions, but that's not what I'm after. I'd love to …

c++ iostream
What does the "c" mean in cout, cin, cerr and clog?

What does the "c" mean in the cout, cin, cerr and clog names? I would say char but I haven't …

c++ iostream standard-library
cstdio streams vs iostream streams?

I just learned of the existence of the ios_base::sync_with_stdio function, which basically allows you to turn …

c++ c stream iostream cstdio
C++: assign cin to an ifstream variable?

You know the common stdio idiom that stdin is specified by a filename of "-", e.g. if ((strcmp(fname, "…

c++ iostream ifstream
Stringstream when iterating through string doesnt work

So i want to use string stream to convert strings to integers. assume everything is done with: using namespace std; …

c++ string loops iostream sstream
How to clear/reset/open an input stream so it can be used in 2 different methods in Java?

Here's the code: package testpack; import java.io.*; public class InputStreamReadDemo { private void readByte() throws IOException { System.out.print("Enter …

java inputstream iostream bufferedreader system.in
How to create a boost ssl iostream?

I'm adding HTTPS support to code that does input and output using boost tcp::iostream (acting as an HTTP server). …

c++ boost openssl boost-asio iostream