what does theese arrows do?

closed account (G1bS1hU5)
I dont understand this code. The -> arrows what do they do?

 
  game->GetWorld ()->GetPlayer ()->gateway.Nuke ();


thanks =)
From the phrases used, they're probably sending you off!

Arrows ... they point.
when a function returns a pointer you can immediately access it by treating the function call as the pointer, or you can stow it for later.

type * tp = foo();
tp -> something;

is the same as

foo()->something;

Topic archived. No new replies allowed.