Date: 2003-05-17 07:46 pm (UTC)
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.

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

merlinofchaos: (Default)
merlinofchaos

February 2019

S M T W T F S
     12
3456789
10111213141516
171819 20212223
2425 262728  

Most Popular Tags

Expand Cut Tags

No cut tags
Page generated Jul. 6th, 2025 07:42 am
Powered by Dreamwidth Studios