Just a wisdom note ;-)
If you just started learning C++ on your own, it might not be that wise to start with game programming using Allegro, DirectX, OpenGL, or whatever else there is. Try starting with a smaller non-graphical example, and then gradually build your knowledge about the language, libraries, etc.