This would need more than a few lines of code if you start from scratch. I suggest that you have a look at the GDAL API for C++ (quite straightforward to extract the raster size etc.) and at the orfeo toolbox (uses FLTK for visualization). 

How can I display GeoTIFF image in VC++?
Is there any more slangy/easy way of saying "mistakenly about what one saw"?
Like in the below example what else can be replaced Maybe I was mistaken.?


  A: I think I heard something in the dark.
  
  B: I didn't hear anything.
  
  A: Maybe I was mistaken.

