![]() |
CSC
630 schedule
| syllabus |
format | style |
| Format Your projects reflect you. Make them professional. Turn in all materials in a new pocket folder. Label your folder clearly with your name, course number, and section number printed on the outside. The folder can be reused for every project if kept clean. |
|
|
Include the
source files. They should begin with your name, the date, the course
and section number, the name of the program, the compiler you are using,
the path to your executable (verified that the world can run it), and
the purpose of the program. See Basic Style and Documentation Guideline. With every
project type a one-half page informal discussion for the instructor
that may include:
Program test
runs. Turn in considerable test cases to demonstrate the
correctness of each program.
|
|
| Header
File Separate the declaration of a function from its implementation with a header file. It must be well commented with constants (#defines), datatypes (typedef), global variables (minimize), & function prototypes. The actual C++ code details are not put in the .h file, but are put in the .cc files. |
|
| Main
File Separate the main function from the rest of the code by writing it first in your project calling the other functions. It should be short, well commented, call the many utility functions in p1.cc, and contain the main event loop: for(;;) /*escape from loop when worm dies or fills the screen*/ { GetMove(); -----/*call functions as needed*/ } |
|
| EVERY FILE, FUNCTION, PROCEDURE, AND PROGRAM WRITTEN IN THIS COURSE MUST BEGIN WITH A SHORT COMMENT ON ITS PURPOSE. IN THE PROJECTS AND THE EXAMINATIONS YOU WILL BE PENALIZED IF YOU OMIT COMMENTS. | |