opening an image file

what is the syntax for this?

do you want to see the image?
[y]-yes
[n]-no

if yes
open image.jpg
if no
exit program
It depends on what library you use to show graphics.
im using iostream and fstream
windows operating system..
any suggestion what library should use?
CImg
Topic archived. No new replies allowed.