Paul Bodily About Courses Research Outreach Tips for Communicating Teaching Philosophy Vitae

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

  1. 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.
  2. Name the project whatever you choose.
  3. Click "Next".
  4. Select "Empty project" and click "Finish".
  5. Choose "Project > Add Existing Item..."
  6. Select the starter files (InsertionSort.*, main.cpp).
  7. Choose "Build > Build Solution" to build.
  8. Choose "Debug > Start Without Debugging" to run.
  9. 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.
  10. Choose "Tools > Options > Text Editor > C/C++ > Tabs", change tab size and indent size both to 2 and select "Insert spaces".
  11. 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