> And just when you thought there isn't another way :
There is a bug in line 20 as reported by CODE::BLOCK and Dev-C++, viz.,
"expected primary-expression before "unsigned"". Borland 5.02 reported "expression syntax error".
BTW, what compiler are you using?
Visual studio 2008. Just take away the unsigned part, I guess.