When defining a new type in C++, one of the things that need to be taken care of is how to read and write them. Suppose that we have defined a new type. Now you want to be able to read and write your new type. How is it done? One of the approaches (applicable … Continue reading Defining input and output operators cheatsheet.