OpenGL SuperBible 6 help please!

Hi I recently got OpenGL SuperBible sixth edition but just cant get the example working can someone please go step by step through how to get them to work. Thank you

so i think i got it but when i compile and run it the window just opens and flashes is that something to do with what version of opengl my hardware can handle?