I would start looking at things like
http://www.mitchr.me/SS/exampleCode/glut.html[
^] - he has some really good examples, ditto this example
http://www.cs.ucsb.edu/~nurmi/cs60/project4/basic.cpp[
^] &
An introduction on OpenGL with 2D Graphics - OpenGL Tutorial[
^]
Since you havnt posted code, no-one can really say how far off the mark you are with your own efforts - it also makes people suspicious that you havnt actually done anything, unfortunately - and we dont do homework/assignments for people - dont be afraid of posting your own code here, no matter how bad you think it is - sure there are people who love to criticise, but most people are here to help - some of the code I used to write way back when I'd be so embarrassed to post myself :-)
My advice is, start with 'hello word', add and extend functionality to it, and post back specific questions with code when you need detailed help.
ps .. if you do a search here on CP for c++ glut you also find some articles :-
GLUT Window Template[
^]
The OpenGL and GLUT: A Powerful Graphics Library and Utility Kit[
^]