Computer Science 2574
Intro to Data Structures & Soft Eng

/*---------------------------------------------------------------
Module name:			listdata.h

Purpose:
This module contains the necessary data structures for dlist.h to
create the linked list.

the data structures are as follows:

 struct listdata
		{
			define internal data items here
		};

 struct listtitle
		{
			define header data items here
		};
this data file will be used by dlist.h in its definition
of the list.


Created by:  Jon Ford 
Version: 1.00
Modified:  3/27/96
--------------------------------------------------------------*/
#define SSNSIZE 12
#define LNSIZE 17
#define INITSIZE 5
#define INSTSIZE 25
#define DEPTSIZE 10
#define COURSESIZE 10
#define TITLE1SIZE 20
#define TITLE2SIZE 20
#define DATESIZE 19
#define FILENAMESIZE 40
#define SEATSIZE 9
#define FORMSIZE 9
#define GROUPSIZE 9
#define EDITSIZE 10
#define DESCSIZE 100

struct listdata
	{
	 char SSN[SSNSIZE+1];
	 char lastname[LNSIZE+1];
	 char initial1[INITSIZE+1];
	 char initial2[INITSIZE+1];
	 int correctcount;
	 int omittedcount;
	 char seatnumber[SEATSIZE+1];
	 char form[FORMSIZE+1];
	 char group[GROUPSIZE+1];
	 float score;
	 float tscore;
	 };

struct listtitle
	{
	char opfilename[FILENAMESIZE];
	char instructor[INSTSIZE+1];
	char department[DEPTSIZE+1];
	char course[COURSESIZE+1];
	char title1[TITLE1SIZE+1];
	char title2[TITLE2SIZE+1];
	char date[DATESIZE+1];
	char currentedit[EDITSIZE+1];
	char editvalue[80];
	int filetype;  /*0 indicates an Opscan file, 1 indicates an ODB */
	int students;
	int questions;
	float stddev;
	FILE* opfileptr;
	int edit_len;
	int ins_point;
	int currlistitem;
	float total;
	char desc[DESCSIZE];
	int savestatus; /*0 indicates ok, 1 indicates needs to be saved*/
	int newstud;
	};