Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
operator>> (pronounced 'Stream in operator') is an operator for sending data from a stream to something. For doing the other way around, use operator<<.
Prefer overloading operator>> with a free function [1]. To be able to access the private member variables, make this function a friend.
#include <iostream> |
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.