I’m a newer for OpenGL programming,I want to know what’s the use of vertex programming,and is it difficult?

By default OpenGL applies certain calculations to each vertex you pass it; vertex programs allow you to redefine what calculations get applied by providing your own program to execute.

The difficulty lies in understanding the mathematics that must be applied per vertex to get correct results.