Absolute beginner: Rendering 8 verts

I am trying to render 8 verts which form a cube using a vertex buffer object. Problem is all I see is a white pixel at the bottom right corner of the window.
Here is my source. Could you point what am I doing wrong ?

You don’t set any matrices or shaders. So the vertices happen to be at the 4 corners of the view-frustum, and most get culled.

So it’s as if I am currently viewing the verts from the top/bottom or some side view ?
I got my hands on the fifth edition of the opengl superbible, I guess I should be reading Chapter 4(Basic Transformations). Thanks for your reply.