Well ... I put the bool function and struct declaration outside class and it worked....

Anyway the above sample code is just a part of my program... in the original code there are three integer variables in struct (percent, totalpercent & score being the three variables). I've sorted them using three bool functions.... I'd like to know if there is a more object oriented way of doin the same(like iMalc's method).

Also thank you for your replies....