Saturday, September 22, 2007

When to use exceptions and when to use return codes

Use exceptions in exceptional conditions and use return codes to control program flow.

Monday, September 3, 2007

Section-Templates

1. What is template specialization?

Template specialization is the mechnaism to override the default template implementation to handle a particular type in a different way.

2. What is partial template specialization?

Using a template that specializes on one feature but still lets the class user choose other features as part of the template
Can you make member variable as default parameter of a member function?