yes a pointer points to an address..but since you use the 'new' operator..which allocated memory off the heap..it is pointing to the new allocated memory you just supply for it..isnt dynamic memory allocation beauitful?

this allocates an array of ints..4 bytes (visual c++) time counter amounts.
Code:
pointer=new int[counter];
well when you use
Code:
pointer[x]
it is the same as
Code:
*(pointer + x)
why wouldn't this work?
Code:
total+=pointer[x]*;
because thats like saying
Code:
total += *(pointer + x)*;
pointers and arrays are very similar in c++