Assignments

All assignments should be submitted on myCourses. You are encouraged to post questions on the assignments on the Discussion Board of myCourses, which will be monitored by the instructor and the TAs, but all students are encouraged to help and share their knowledge. You may not post your code on myCourses. If a small snippet of code is really necessary to clarify why your code is not working, post a few lines of code and the instructor might ask you to provide more.

You are free to use any editor you like. We will provide the necessary header files and a make file that will compile all source files into an executable. The makefile is designed to work on the Trottier machines, but feel free to change it if you want to compile your code on other machines.

We tried in the first homework to make it easy for everybody to use Eclipse. The attempt was mostly a failure (I hope that students that succeded in making their Eclipse work are satisfied with it), in particular for Windows users. Based on the blood, sweat and tears of some of you and ours, we compiled a list of instructions that might help you though the process of installing Eclipse on Windows. Special thanks to Malika! The instructions are based on the video below:


Instructions:
  1. Install gcc/MinGW - download here
  2. Install Eclispe - download here
  3. In Eclipse, choose path to gcc by following Window -> Preferences -> C/C++ -> Build -> Environment -> Add -> variable: PATH, Value: give the path to where you installed gcc
  4. Download the package with the sources that we provide for every assignment. Unzip it. In Eclipse, File -> Import -> C/C++ -> Existing Code as Makefile Project, then Browse to the place where you unziped the package. Before you finish: uncheck "Show only available toolchains that support this platform" and select MinGW from the box. This will setup the toolchain.