CS 3050, Spring 2007
Programming Assignment 5
Due May 16, 2007

Handling Records by RRN

In this lab, you will learn how to manipulate records in a file with fixed-length records. You will learn how to jump to a certain record (using its RRN) in order to read it or modify it. The first record has RRN=0, the second has RRN=1, and so on. The lab is based on an assignment created by Lucia Moura at the University of Ottawa.

C/C++ reference: http://www.cppreference.com/


Problem 1:  Read the records of a file and write them into another file in reverse order (last file first) Problem 2: Change the name of student in a specified record to a given name Submit your files (lab5.cpp, student.h, student.cpp, and students.dat) along with a script to the homework submission system as Lab5.
A hard copy of your lab5.cpp (be sure your name is on it) should be turned in at the beginning of class.