CS 3385 Project Instructions
Projects are called pXX because the algorithm you will be implementing is on page XX of the textbook.
Windows/VisualStudio users
- Open VisualStudio and create a new project: "Installed Templates > Visual C++ > Win32 > Win32 Console Application". If you don't have a C++ option, run the VisualStudio installation, choose "Modify" and select "Visual C++". Complete the installation.
- Name the project whatever you choose.
- Click "Next".
- Select "Empty project" and click "Finish".
- Choose "Project > Add Existing Item..."
- Select the starter files (InsertionSort.*, main.cpp).
- Choose "Build > Build Solution" to build.
- Choose "Debug > Start Without Debugging" to run.
- Note: to debug you may choose "Debug > Start Debugging". However, you'll see that the output window disappears immediately upon completion. You may want to do this, however, if you want to set breakpoints.
- Choose "Tools > Options > Text Editor > C/C++ > Tabs", change tab size and indent size both to 2 and select "Insert spaces".
- Before submitting, you should visit each file and choose "Edit > Advanced > Format Document".
Mac/Linux users
A makefile is distributed with the source code. To compile, open a terminal and type "make". To run, type "./project".
General instructions for all
- You will submit only the files specified in the comments in main.cpp. You will not submit main.cpp itself. Your code will be tested with a slightly modified version of main.cpp. Your final score will be solely dependent on the number of tests you passed and the quality of your code (quality is checked randomly).
- *WARNING* Do NOT use any extra libraries. If you do your code may not compile and, in any event, you will receive a zero for the project. A good way to check that you're not using any extra libraries is to make sure that no extra #include statements have been added to any of your files.
- When you're finished, use the Project Checker make sure your code passes all tests. Then submit your files. For the project checker, DO NOT compress them into a zip file -- submit them individually (for Moodle you will need to zip them). DO NOT submit main.cpp. Check your files before you submit them to sure they have the modifications you expect. (Sometimes people make two copies of a file and submit the wrong one.)