installing glut

How do i install glut on my computer
i have it downloaded it but it doesnt work i have put the library files in my gl folder
but i wrote a program out of a book and it still didnt work

The headerfile should be placed in the include/GL/-directory, and the libraryfile should be placed in the lib/-directory. You also need to add the library to your project. Then you should be able to compile programs.

… and put glut32.dll in some directory that is mentioned in your PATH enviroment like windows\system.

I followed these directions to setup opengl for visual c++ and it works:
http://www.cs.unc.edu/~mcneill/comp235/opengl_examples/setting_up_gl.html