A Bingo Game

I am beginner for openGL programming
And i am doing a mini project
My project is Bingo Game which contains 25 separate cubes in space and if we click a particular cube among these 25 cubes… then the clicked cube should rotate
so how shuld i do
I am in confusion Like should i use glViewPort for this or some thing else ???

Plz help me

Try reading some of the beginner tutorials online - make them work then move to your problem.