Im only offering up one contest choice at a time this time around,
i think it will make the competition more agressive. If this is a big
success i will continue to post competitions.
Contest #1 will be judge on the following criteria,
1. How well it conforms to C++, (this means i dont want to see
character array where strings would be better used)
2. Length of code. (shorter being the best)
Object of this contest :
Parse a file(html) doesnt need to be in html
format and the filename should be provided by the
user, commandline acceptable but not required.
The user should beable to select which file type
he wants removed from the file for later use.
Pretend this is a file you are given, which contains, in html
format many links to picture and video and music.
Now obviously there will be more stuff in the html file then justCode:<a href="http://www.image.com/images/blah.jpg">words</a> <a href="http://www.image.com/images/blah.bmp">words</a> <a href="http://www.image.com/images/blah.gif">words</a> <a href="http://www.image.com/video/blah.wma">words</a> <a href="http://www.image.com/video/blah.mpg">words</a> <a href="http://www.image.com/video/blah.avi">words</a> <a href="http://www.image.com/video/blah.asf">words</a> <a href="http://www.image.com/music/blah.mp3">words</a> <a href="http://www.image.com/music/blah.mp3">words</a> <a href="http://www.image.com/music/blah.wma">words</a>
links and some of the links wont start with "a href=" some will
be "img src=" along with a few other so it may take some reasearch
if your not fimilar with html. YOUR job as the coder, is to
accept a user input or from a config file, file extention such as
".jpg" , ".gif", ".zip", ".mp3", ".avi" and so on. Once you have
collected the file extentions you must sort out the links in the
file so that only the links to the extention supplied by the user
still exsist. You can either overwrite the file with the links that
were pulled or you can put them in a new file.
Once you have completed a request by the user to save the links
with the following extention for example (.mp3 , .jpg) your
output file if the above was your file would look like this :
Code:http://www.image.com/images/blah.jpg http://www.image.com/music/blah.mp3 http://www.image.com/music/blah.mp3
All of this is free to interuptation.
That of course means, as long as you get the links the user wants
its entirly up to you on how to make it happen. That is you must
still stay in the bounds of the criteria to win. I know this next
part my neglect some of you, but you are required to have below
800 posts at tiem of submission to compete in this contest.
August 9th (Yep thats one week)
Good Luck to those who participate, as a side note
please message me or post in c++ board question you
have when you start coding this project, especially if you get
discouraged to compete in it.
Many of you might be wondering what the point of this program
is, well for one i come to many site that have alot of picture or
video on it but there a thousand individual links and i have
to click each one, well now i can just get all the links i want
real fast then use a mass downloader. I just wrote this program
a few days ago myself, so i though was a good idea to pass