On Monday, 5 May 2014 at 16:15:43 UTC, hardcoremore wrote:
neurons[] = &n; // here &n always returns same adress
You're taking the address of the pointer, which isn't changing. Just use plain n - when you new it, it is already a pointer so just add that value to your array.