As Jonsca said, you can't just display an image in C++ (well you can, but you wouldn't want to because you'd have to write a lot of complex code that has already been written by other people and packaged into a nice library).
If you want something really easy to start with, you can use the C++ API to Imagemagick, Magick++. There is a very good "gentle introduction" to Magick++ here. Once you have read in your image, you can display it easily with the Magick::Image::display() member function.
Of course, this is only a very simple way to show an image (mainly as a way to check steps in some kind of image processing algorithm). You can't actually interact with the image in any way, except to close the window when you're done. If you want to do something useful and interactive with the image, then you'll need a more sophisticated approach, using QImage from the Qt library, for example.
What is your current understanding of C/C++? Do any of the things that I've said so far have any meaning to you? If not, you might what to consider focussing on some more basic principles before tackling image processing and display...
well you can, but you wouldn't want to because you'd have to write a lot of complex code that has already been written by other people and packaged into a nice library).
That's an excellent point. I should clarify the issue when I say that, I meant that there's no single function or class specific to the task of image manipulation. Certainly, you can read the file directly as binary, as ravenous is attesting.
Once you get that, copy and paste the code. Try it and compile.
If it doesn't work and you're using image files, there's a good chance you need to copy the data files into the same folder as where the program is executing from.
Once you get Allegro done, let us know and we'll help you get CXImage working in it. For now, focus on Allegro.
Thanx for the allegro information. I tried and i'm able to execute sample program that is mentioned in Allegro tutorial. I set all the necessary project settings as mentioned in the link. But i'm not able to build it in debug mode. Its giving build error as "Cannot open Odbcc32.dll file". I can able to build and run it in release mode.