I'm trying doing a exercise. This (strange) exercise's called "A pointer data manager class". also called "Unusual exercise" in my opinion.
Generally speaking, this exercise requires the output class must have a feature that everyone can access a pointer in many different methods. It's awful! I've never seen this kind of exercise before.
My teacher gave no hints, only try the (*void) pointer.
I feel this exercise is too hard. But with the help of my friends, this class is almost done but maybe there are some remaining errors still appear.
It does nothing. Redundant. Or you forgot something?
Name's too long.
You should have a variable which stores index instead of an array. It seems too complex.
Why did you define an operator? It also may be redundant.
Example for Pos() (reference)
1 2 3 4 5 6
//Public : nIndex
int nGrow = 10;
for (i=0;i<nCurPos;++i )nGrow*= 10;
nIndex += nPos * nGrow;