CIS 22 Data Structures - Submitting Your Programs
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 */
}