CS 3050, Spring 2006
Programming Assignment 5
Due Monday, May 8, 2006

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.