Stuck on drawing local coordinates with .asf file

  animation, asf, c++, graphics, opengl

I was writing a code of reading .asf file using opengl. I have drawn the joints and bones. But I really have no idea on drawing the local coordinates for each bone. I have tried some ways that it did not work well.

wrong coordinates
correct one

Source: Windows Questions C++