You provided pretty few informations to work with.
But i can see that you are using the old (C-Style) Version of openCV, which isn't necessary if you're working with C++. You should rather use the new API which is much more convenient to use.
For example to read and show an image in a window you can use:
Mat img = imread("image.jpg");
namedWindow("image", CV_WINDOW_AUTOSIZE);
imshow("image", img);
Some fundamentals of working with images in openCV are explained here:
http://docs.opencv.org/doc/user_guide/ug_mat.html[
^]