one example program please

hai friends
give me one example program how i can texture the glutWireCube(1); glutSolidSphere(1,30,30);objectS . guide me.
i want one example program friends.

This is not an advanced question.

Visit nehe.gamedev.net for example programs.