CIS 22 Data Structures - Submitting Your Programs


Your assignments should be submitted as a single unit, preferably stapled together or on continuous form. A properly submitted program consists of program execution output as well as source. The project should be assembled in the following order: Each ADT must be in a separate .h/.c file pair. You should only hand in new ADT's; any source files handed in as part of an earlier assignment should not be handed in.

Each source file should begin with a comment of the form:


/***
	CIS 22 Section Spring 97
	Your name
	Assignment number
	Filename
	Brief descriptive title (e.g., Stack ADT)
***/

Similarly, each program execution should begin with the above lines (except for the Filename). This latter task can be made easier by creating the following module, heading.h/.c(pp) to do this for you and linking it in with each assignment:

heading.h


void printHeading(char *assgmtNumber, char *assgmtDesc);

heading.cpp

void
printHeading(char *assgmtNumber, char *assgmtDesc)
{
	printf("/***\n");
	printf("\t%s\n", "CIS 22");
	printf("\t%s\n" "I.M.A. Student");
	printf("\tAssignment #%s\n", assgmtNumber);
	printf("\t%s\n", assgmtDesc);
	printf("***/\n");
}

Then, in main:

main()
{
	..... 	/* Declarations, etc. */

	printHeading("1", "A Better C String");

	.....	/* Actual program */
}