Your C++ source code files should follow a specific format and you will e-mail them to me in a specific way. These rules make it easier for me to automate the collecting and compiling of your homework assignments, so it is important that you follow them carefully.
- Format for your C++ files.
- At the very beginning of each of your source files there should be a C-style comment containing the course number, your name, and the assignment number. An example below shows how you would format a very simple C++ program. After the initial comment are your
include and using statements. After these are any declarations followed by the main() function.
/*
Course: CS 124
Name: Jean Shepherd
Assignment: 0
Any other comments that you want to make...
*/
#include <iostream>
using namespace std;
main()
{
// your code goes here
}
|
I want you to follow a very strict rule for naming the file that contains your program. The name of your C++ file should be of the form CS124Ass0Surname.cpp . The number between Ass and Surname is the number of the homework assignment. And Surname is of course your last name. If your surname has more than one part, concatenate the parts together so that the file name does not have any spaces in it.
Some of your homework solutions will consist of more than one file. When you need to turn in more that one file, put all of the files in a directory and call the directory CS124Ass0Surname (where the number between Ass and Surname is the number of the homework assignment). Then use the WinZip program to zip your directory into a single .zip file. If you are not familiar with using WinZip, then ask me after class and I will show you everything that you need to know about it. (If your source files are contained in a zip file, then you can give the individual files in your solution any name that you want. But you should chose useful, meaningful names for you source files.)
- E-mailing your assignments.
- When you are finished with your assignment, e-mail me your source code. If your solution is a single file, attach the C++ source file to your e-mail message; if your solution is several files, attach the zip file to your e-mail message. In the body of the e-mail message put your name, the course number, and the assignment number. The subject of the e-mail message should be CS124Ass0Surname (where the number between Ass and Surname is the number of the homework assignment).
If your assignment is not finished but you want to send it to me in order to ask a question about it, then use the following procedure. Put both your question and your source code in the body of the mail message. The subject of the e-mail message should be of the form "Question: CS124Ass0Surname".
NOTE: If you are having trouble getting your e-mail client program to make your source code file an attachment, use the Purdue Calumet NetMail server to submit your homework. The attachment feature works properly. You will need to know your username and password to use this e-mail program.
|