Posted: Fri Sep 16, 2011 3:51 pm Post subject: C++ question
Im not a c++ coder and cant make heads of this.
y = *cy + SearchDirection[*tracingdirection][0];
The part in bold. Im trying to convert an open source project to C# but this is the only part i dont understand.
Reason i ask is because the 2d array size is 8,2 but *tracingdirection within the source is only 1 or 0. How can it loop through the array.
Im guessing it has something to do with *
Anyone?
the full code
Code:
void Tracer(int *cy, int *cx, int *tracingdirection)
{
int i, y, x;
for(i = 0; i < 7; i++)
{
y = *cy + SearchDirection[*tracingdirection][0];
x = *cx + SearchDirection[*tracingdirection][1];
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum