< previous page page_688 next page >

Page 688
0688-01.gif
//******************************************************************
// Exam program
// This program compares students who come to take an exam against
// a class roster. A list of students who took the exam and a list
// of students who missed the exam are printed.
// Assumption: Student names are unique within the first 10
// characters
//******************************************************************
#include <iostream.h>
#include <fstream.h>    // For file I/O
#include <string.h>     // For strcpy(), strcmp()
#include "bool.h"       // For Boolean type

const int MAX_LENGTH = 200;        // Maximum number of students
const char END_DATA[] = "EndData";  // Sentinel value for
                                   //   student name
typedef char String10[11];         // Room for 10 characters
                                   //   plus '\0'

 
< previous page page_688 next page >