I wish to a write a C++ program that would do the following: 1) display an image from a folder randomly 2) display the image for 10 seconds and then close it , and 3) go to step 1. Keep doing this until the user presses any key.
How should I go about this?
Ultimately I wish to convert this program into a screensaver, but that is for later.
That is a great big open ended question right there.
Displaying anything is going to require some GUI code, which can be quite OS specific, so which OS are you targeting?
What file input types do you want to support?
Have you tried anything yet or do you just want some guidance before you start?
Give us some details and we can point you in the right direction, but what you're asking for is quite complex and you might not get a lot of help, I wouldn't expect any complete code either.