#include <iostream>
#include <string>
usingnamespace std;
int main()
{
cout << "Options:" << endl << endl;
cout << "1. Create new SoftAP" << endl;
cout << "2. Rename the current SoftAP" << endl;
cout << "3. Reset the password of the current SoftAP" << endl;
cout << "4. Turn on the SoftAP" << endl;
cout << "5. Turn off the SoftAP" << endl << endl;
cout << "Please enter the number of your choice below.\n>";
string option1;
cin shit blah blah you get the point;
system("netsh blah blah blah" option1);
return 0;
}
Your first post (using +) was closer to what you need. After using the + to add all the strings together, call the c_str() method. e.g. (str1+str2).c_str()