DOC PREVIEW
UE CS 215 - Submission Instructions

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 215 – Fundamentals of Programming IIFall 2007 (Harlaxton) – Submission InstructionsWhile there are a plethora of software development environments for the C++ programming language that are implemented on many different platforms, for consistency and experience, programming assignments in CS 215 are to be completed using the GNU C++ compiler (g++) on the Harlaxton CS project server, cs215.ueharlax.ac.uk. Having everyone using the same compiler will contain any potential compiler bugs and keep the language semantics consistent (by requiring certain semantic switches-see below). Although there has been an ISO standard for C++ since December 1999, different compilers still interpret and implement the newer language constructs differently, and they each have their quirks (though it is getting much better). Having a common compiler will help in containing these quirks. Also, occasionally include files may be given as part of the assignments. These files may be platform dependent and/or refer to precompiled libraries. Access to these files will be aided by having everyone on the same platform and using the same compiler.Compiler and CompilationProgramming assignments must compile on the Harlaxton server using the g++ compiler for minimal credit to be given for the project. This does not mean that some (or even all) of the programming assignment must be developed on the Harlaxton server. Those of you that have other development systems can complete some or all of an assignment on that system. However, when the program is turned in, it must compile using g++ without any intervention from the instructor. A program that works "perfectly" using, say, the Visual C++ compiler will be returned for resubmission for late credit if it does not compile on the Harlaxton server- using g++.All source files will use the following conventional suffix indication:.cppC++ source files.hUser-defined C++ header filesTo compile C++ code you are to use:g++ <compiler options> <source files>Common compiler options include:-o <executable name>creates executable file of given name; default is a.out otherwise-ccompile only; creates .o object file(s) of same name(s) as source file(s)-Wallcompile with all warnings turned on; this is required to produce the most conforming code possible-gcompile for symbolic debuggingGenerally, you will submit a makefile in addition to source and header files that will invoke g++ appropriately. See the handout Very Basic make for an explanation of makefiles. Note: when you do run the compiler from the command line, be very careful that you put the executable name after the -o option, otherwise the compiler will overwrite the first source file. Turning in AssignmentsAssignments will submitted both on-line via email on Harlaxton server and in hard-copy printout. To receive a minimal grade the source code must compile as noted above.08/26/07 1 of 2For the on-line submission, all files necessary for the project should be archived together using the tar facility and submitted by sending the tarfile as an attachment to [email protected]. The tarfile should include all of the files required for the assignment as specified. These may include makefiles, header files, source files, input files, and output files you might have written. Your tarfile should be named as follows: YourUsernameAssignmentNumber.tarThe tar facility is invoked using: tar -cvf <tarfile> <files to archive>where the options -cvf mean create a tarfile, report in verbose mode, and put the archive in file <tarfile>. If you want to check whether all your files got included in your tarfile, you can list the tarfile contents (option -t) using: tar -tf <tarfile>You can also try extracting the files from the archive (in a different directory! - option -x) using: tar -xvf <tarfile>For example, suppose A. Good Student's (username ags) 6th project for CS 215 includes the following files: Makefile.proj6 stack.h stack.cpp sim.cppThen A. Good would tar these files as follows: tar -cvf agsProject6.tar Makefile.proj6 stack.h stack.cpp sim.cppNote: Be very careful that you put the tarfile name after the -cvf, otherwise this will overwrite the first file in the file list as the tarfile. Then A. Good would email the file agsProject6.tar to [email protected] as an attachment. This can be done on the Harlaxton server using the command pine. Pine is a text-oriented mail program with an editor similar to emacs. It has a menu at the bottom of the screen that gives the available commands. The important ones are c to compose a message, Ctrl-j in the header area to attach a document, Ctrl-x to send a message, and q to quit Pine. To conserve paper, the hard-copy printouts should be printed 2-up in landscape mode using a2ps <file names>This will print in the Manor Computer Lab (nowhere else!) with two pages of source code on each piece of paper. (If you print your files somewhere else, you can print them however you like.) If you are using vi tabs, you may need to print source code using the -T3 option, so that the tabs are printed as 3 spaces rather than the normal 8 spaces. Only those file specified in the assignment need to be submitted in hard-copy.08/26/07 2 of


View Full Document

UE CS 215 - Submission Instructions

Documents in this Course
Lecture 4

Lecture 4

14 pages

Lecture 5

Lecture 5

18 pages

Lecture 6

Lecture 6

17 pages

Lecture 7

Lecture 7

28 pages

Lecture 1

Lecture 1

16 pages

Lecture 5

Lecture 5

15 pages

Lecture 7

Lecture 7

28 pages

Load more
Download Submission Instructions
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Submission Instructions and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Submission Instructions 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?