There's a third possibility: go way beyond what the professor expects and have fun with it. Use templates. Use abstract classes. Avoid multiple inheritance if possible. Use the STL and namespaces and operator overloading.
I still boggle at the fact that the template stuff in C++ is Turing-complete. This means that (in theory) you can perform any computation at compile time. A friend of mine gave his class the exercise of computing prime numbers and printing them out in the compiler warning messages.
I will not be held responsible if your professor falls over when trying to grade your assignments, but you could certainly have fun.
no subject
Date: 2003-05-17 07:46 pm (UTC)I still boggle at the fact that the template stuff in C++ is Turing-complete. This means that (in theory) you can perform any computation at compile time. A friend of mine gave his class the exercise of computing prime numbers and printing them out in the compiler warning messages.
I will not be held responsible if your professor falls over when trying to grade your assignments, but you could certainly have fun.