count no.of strings in class.
have a static member variable, increment this in constructor. this
gives you no.of objects.
no.of strings * no.of objects = what you want



>  > Suppose we have a class Dictionary. Each object of Dictionary
>  > consists of a number of c++ strings. What's the way of counting all
>  > these strings occurring in all objects?
>  > I guess it should be about static member function.


To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=626155844


Yahoo! Groups Links

Reply via email to