Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 343 Bytes
/*
* Author: Ricardo Garcia Gonzalez
* License: Public domain code
*/
#include <iostream>
#include <limits>
#include "operation.h"
using std::ostream;
// Output a given operation.
ostream &operator<<(ostream &out, const Operation &op)
{
return out << op.left() << ' ' << op.opchar() << ' ' << op.right()
<< " = " << op.result();
}