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 | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
