V
Vincent SHAO
int distance[MAX_X][MAX_Y];
memset(distance,-2,MAX_X*MAX_Y*sizeof(int));
Academically, the buffer "distance" should have been filled with -2
after these two line,
but, memset just fail to do the trick, they are still a garbage value
"-16843010"
why?
Thank you.
memset(distance,-2,MAX_X*MAX_Y*sizeof(int));
Academically, the buffer "distance" should have been filled with -2
after these two line,
but, memset just fail to do the trick, they are still a garbage value
"-16843010"
why?
Thank you.