I just completed my first Object Oriented Programming class with an A- and I want to create my own program. The only problem I'm running into is how to program a function that checked to see if an image (.png, .jpg, or .gif) url exists online.
You could use a library such as libcurl, but that might be overkill if that's really all you need.
Instead, you could just connect to the server (using sockets), send a minimal HTTP request such as:
HEAD /button.gif HTTP/1.1
Host: nonstickglue.net
and then check the first line of the reply to see whether the server responded with 200 OK or 404 Not Found.