Hi bbcc,
it looks as though
HistoManager is part of a linked list where each
HistoManager object contains a pointer, called
fManager to another
HistoManager object. Is this what you want to do?
If you are within the scope of the class, and
fManager is part of the class, then you shouldn't need to use scope operator ::
since it is implicit within the class.
You cant just declare
fManager like
HistoManager::fManager = 0;
|
within
HistoManager since its type is not declared, nor does it appear to be constant.
If you are within the class scope you can just initilise
fManager in the initilaisation list:
1 2 3 4 5 6 7 8 9 10 11
|
class HistoManager
{
HistoManager(...)
: fManager(0), ...
{
...
}
...
};
|
If you are not within
HistoManager then you need to specify the
HistoManager object that you instantiated and that you wish to modify, e.g.,
int main()
{
HistoManager Example;
Example.fManager = 0; //if HistoManager::fManager is public then this is ok
...
}
|
Hope that helps.