Orbiter SDK has all the samples you will ever need. Samples are easy enough to understand, but one thing I don't like is that Dr. Martin has combined some fundamental coding concepts (eg. 2D panels) with other complex concepts, to produce complex vessels (Deltaglider, ShuttleA), so you have to go through a lot of "code clutter" to find what you need.