inheritance and const

ok, i have a class that has a const in it and uses it within it's member functions...i want to make it non constant but i cannot change the class. the ONLY thing i want different about the class is changing that to a non-constant. i was wondering if i could hack around this using inheritance?

i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.

Let me preface by saying that it might depend on your compiler because depending on which you're using, a static const may be treated as a constant (calculated at compile time) and as such, it can not be modified. It can be likened to wanting to do this:

i know it's a bad idea. i hate to give away any clues to my ultra top secret algorthm which will anihilate everyone in the connect four contest, but i've found an ingenius way to use the checkWin() function if only i could get toWin's value to change. so i was wondering if somehow i could inherit Board and use polymorphism or something to be able to change the value of toWin.

i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.

Understood. However, I always thought one of the reasons to do those contests was to test your abilities and try to improve your skills. The connect four contest is nice in that it doesn't restrict code size in any way, so you can try to make the best possible code. If you don't expect to win, then writing better code than usual or trying to learn something are admirable goals.