fractioncpp friend fraction operator istream ins

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: r: (5 marks) ... fraction.cpp friend Fraction operator >>(istream &ins, Fraction fract) { ... } B. Write a program which inputs a number of fractions into an array and find the largest one. (It should make use of the Fraction class built in Lab 9.) The expected run-down is: #include "fraction.h" #include <iostream> #include <fstream> using namespace std; Fraction maxFractions(__________________________) { } void main() { int n; cout << "Input n (n<=10): "; cin >> n; cout << "Input " << n << " Fractions:\n"; cout << "Largest fraction is: "; } 2/...
View Full Document

This document was uploaded on 10/15/2013.

Ask a homework question - tutors are online