I am making a program in C++, in which a web link is there so that when i type an input or simply press enter it will redirect me to that link which i have entered. For example if i have 3 options and i choose option A, the program will redirect me to that link which is in the option A.
Here's a sample:-
#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
system("COLOR B1");
int choice;
cout << "Menu" << endl;
cout << "1. Pasta" << "\n";
cout << "2. Cold Drink" << "\n";
cout << "Your choice (1-2)" << "\n";
cin >> choice;
if(choice == 1)
{
cout << "Thanks" << "\n"; //Here i want a url and when i choose 1 it
//will direct me to that url
}
else if(choice == 2)
{
cout << "Thanks" << "\n"; // And here also...
}
else
{
return 0;
}
}
Please help. Thanks