Please note I'm very new to c++
I'm making a very simple program for a freshly formated PC.
Basically once I run the program, it will download programs to a folder, like opera, vlc, etc.
So in 5 seconds I have all the programs I commonly use downloading, so I don't have to spend time going to each site and downloading them individually.
But I've run into a problem
So far this is what I have
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int x;
cout << "Type 1 to download \n Opera \n Firefox \n VLC \n Vuze \n Xfire \n Spybot \n ISO Recorder \n";
cin >> x;
if (x == 1)
{
system("start http://get3.opera.com/pub/opera/win/1051/en/Opera_1051_en_Setup.exe");
system("start http://mirrors.yocum.org/mozilla/firefox/releases/3.6.3/win32/en-US/Firefox%20Setup%203.6.3.exe");
system("start http://www.videolan.org/mirror-geo.php?file=vlc/1.0.5/win32/vlc-1.0.5-win32.exe");
system("start http://hwcdn01.vuze.com/files/Vuze_Installer.exe");
system("start http://www.spybotupdates.com/files/spybotsd162.exe");
system("start http://isorecorder.alexfeinman.com/isorecorder.htm");
system("start http://www.xfire.com/download/now/");
}
else
{
system("start www.google.com");
}
return 0;
}
The problem I have is, for example VLC, atm the current version of VLC is 1.0.5, and this downloads it "start http://www.videolan.org/mirror-geo.php?file=vlc/1.0.5/win32/vlc-1.0.5-win32.exe"
But, in 6 months or when ever I reformat my PC, 1.0.5 won't be the latest version, so I don't know how to get it to always get the latest version.
Any ideas?