Oh, then that is because count in main is a null pointer.
Type: Posts; User: laserlight
Oh, then that is because count in main is a null pointer.
With the parentheses, you are incrementing the result of the dereferencing, not the pointer. Personally, I might write:
++*count;
Err... they look identical save for the header inclusion. Are...
Look carefully at:
*count++;
This dereferences count, and increments count. Rather, you want to increment the result of dereferencing count.
Remember to delete what you new. In fact, you do...