In the code in my first post I had both
Code:
cBigApple operator -- ()
{
return cBigApple(--iWormCount, --fTotalLengthOfWorms, 0.0);
}
and
Code:
cBigRedApple operator -- (int)
{
return cBigRedApple(iWormCount--, fTotalLengthOfWorms--, 0.0);
}
But the compiler complains that the line in main reading
is an "Error: UnaryOverload.cpp(98,19):Illegal structure operation"