Overriding I/O Streams in C++
POV: You have a struct/class which you want to add I/O capability to, but you don’t know how.
C++ lets us override the “>>” and “<<” operators, corresponding to input and output streams, respectively.
Let’s build an example; the Point structure holds...
ibell.hashnode.dev2 min read