Okay, in my program I have a line of code like this:
if(type == rabbit){pointer = begin.sim[sim].field[x][y].rabbits; begin.sim[sim].field[x][y].rabbits = this;}
In order to see what the issue I was having with the actual program, I put in this line of code:
printf("\n\n%p & %p\n\n", begin.sim[sim].field[x][y].rabbits, this);
And I found that the pointer begin.sim[sim].field[x][y].rabbits
was equal to this
, when my code was supposed to assign it to the old value of begin.sim[sim].field[x][y].rabbits
, it seems to be assigning it to the address of the pointer, not the value of the pointer, so I'm wondering how to make it assign the pointer to the value, not the address, because everything I've tried keeps giving me a syntax error :(