In desperate need of help!
Can someone please show me how to simply display a pgm image in c++.
I have no prior experience in multimedia programming.
Thank you!

1 : use 3rd libraries, ex : openCV, CImg
2 : study the format of pgm and encode by yourself

example of openCV


int main()
  cv::Mat img = cv::imread("lena.pgm", -1);
  cv::imshow("output image", img);


  return 0;