a6_m2 - Nat Sci Lab CS II, Module II Course: 320112 Jacobs...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

Unformatted text preview: Nat Sci Lab CS II, Module II Course: 320112 Jacobs University Bremen April 4th, 2008 Dr. Heinrich Stamerjohanns . Assignment 6 - Operator overloading This assignment must be solved in C++. Your programs should include proper declarations for all the variables needed. Insert suitable comments to explain what your program does. Also pay attention to proper indentation of your code. The TAs are supposed to take points off, if the code is not properly indented. Problem 6.1 Inserter operator (2 points) Use the files of assignment 5 and add support for the inserter << operator. Print the same as the printdata() function. Your test program should test the new operator. Name the files testrectangle61.cpp , figure61.h , rectangle61.h and rectangle61.cpp . Problem 6.2 Reading and writing a Rectangle (2 points) Write a function that writes an array of rectangles to a text file and a corresponding function that reads an array of rectangles from a file. You can add friend functions as you need. The formatfunctions as you need....
View Full Document

This note was uploaded on 05/04/2010 for the course CS 320142 taught by Professor Stamerjohans during the Spring '10 term at Jacobs University Bremen.

Page1 / 2

a6_m2 - Nat Sci Lab CS II, Module II Course: 320112 Jacobs...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online