starting url using int

closed account (G8Tb7k9E)
i'm trying to make a program that is capable of starting a url with a integer, i tried the system command and that didn't work for me, i'm using bloodshed dev c++ my code:

#include <iostream>
using namespace std;
int main ()
{
int site;
cout << "what site do you wish to visit";
cin>>site;
//code needed to start website

return 0;
}
closed account (G8Tb7k9E)
wow, now i feel stupid, i could of used batch for it.

system("site=\"what site do you wish to visit\");
system("start %site%");
thank you though :)
Topic archived. No new replies allowed.