so i found this piece of code that will open a website hard coded in the .cpp file i wanted to edit this so it ask's the user "What website do you want to go to?" and then go there. Should i be using different code or can i modify this? in the code i tried replacing "www.google.com" with a string but the function ShellExecute wont take the parameters that way
Thanks
#include<iostream>
#include <windows.h>
#include<string>
using namespace std;
int main()
{
string websiteName;
cout << "What string do you want to open?" <<endl;
cin.clear();
getline(cin,websiteName);