Why don't you try it?
> If not how do I get round this?
In the first paragraph you used words that, if they were your own, would make
this follow up question extremely unlikely, unless you suffered a brain-damaging
accident in the short time between writing the first paragraph and deciding on
writing the second. Hence, this is not your own question. It is *HOMEWORK*.
Read the FAQ item on homework question.
Cheers & hth.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
What an irony :)
Anyway, answers to your question are:
1) STFG
2) http://www.parashift.com/c++-faq-lite/operator-overloading.html
Let me get this straight: You are developing a commercial project in
C++ and you don't even know how to overload the [] operator, or whether
you can compare bitsets with operator<?
You know, there are good books about C++ out there. Even free ones
online. Ever heard of this thing called google?