rational_main.cc

rational_main.cc - Rational r3 r2 = r3 = r1.add(r2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include "rational.h" using namespace std; int main(int argc, char* args[]) { Rational r1(1, 2); cout << r1; Rational r2(3, 4); cout << r2;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Rational r3; r2 = r3 = r1.add(r2); cout << r3; // Rational r4; //r4 = r1 + r2; // r1.operator+(r2) //cout << r4 << endl; }...
View Full Document

This note was uploaded on 04/19/2008 for the course CS 265 taught by Professor Daniele.stevenson during the Spring '08 term at Wisc Eau Claire.

Ask a homework question - tutors are online