i've just get started with opengl lib in college so i made this play to practice and test my skills.
i am compiling cpp files using "g++ chapter1Code.cpp -o Chapter1 -lglut -lGLU -lGL" in my linux system you can instead copy the code in your compiler , but make sure it has opengl libraries inside.
or just download the excutable files Chapter1 , Chapter2 .. and run them in your terminal.