This framework is constantly being developed. It has three design goals:
./include/algebra3.h
./src/UCB/
./src/UCB/
src
directory, starting with main.cpp
.
You can create more files to organize your source code, even going so far as to follow the Java convention of creating a separate file for each class (in this case .h
and .cpp
).
//YOUR CODE HERE
IMPLEMENT_ME(__FILE__,__LINE__);
that causes the program to write an error message and terminate if the function is used.Since the framework is partially designed to make grading easier, we ask that your submissions follow the compilation instructions established by it:
Windows |   | Building the solution should involve only opening the project's .sln file and pressing F5 to build and run. |
Mac OSX |   | Typing make -f makefile.osx must compile your solution. |
Linux |   | Typing make must compile your solution. |
Solaris |   | Typing gmake must compile your solution. |
submit as
on the instructional machines preserves directory structure, thus running submit
in the root directory of your submission will allow you to submit the entire project with framework and all. We recommend making a directory for your assignment in your CS184-XX account, and running yes | submit as
inside that directory for quick submission.
There exists a plethora of tools for C++ authoring. Windows users tend to use the Visual Studio environment, which we recommend (download legally for free here or here). Vim, Emacs and Nedit are all popular text editors used for programming, while Eclipse, Xcode and KDevelop are IDE-based environments that assist greatly in programming.
Windows |   | You can either install Cygwin and its associated packages (compilers and GLUT) and follow a linux-like approach, or you can download Microsoft Visual Studio (alternative link) to use for development (probably an easier option for windows users).
For Visual Studio: Open the .sln file and press F5 to Build Solution. If you are using Visual Studio Express 2005, you should either install the platform sdk (instructions) or (preferably) upgrade to Express 2008 or a full version of Visual Studio for free. |
Mac OSX |   | You need to install the Xcode developer toolkit from Apple. Register for a free account. From here you can use your favorite editor and compile from the terminal using the same approach as Solaris. Compile with gmake -f makefile.osx |
Linux |   | You need to install gcc (or similar compiler), the standard c++ libraries, and GLUT. On an aptitude-based system (Debian, Ubuntu), you can accomplish this by installing the build-essential and freeglut3 package. You can now follow the same instructions as on Solaris. |
Solaris |   | Assuming you are on one of the instructional machines, you should be able to compile immediately by running gmake -f makefile |