for(int i=0;i<10;i++){
char o1[]="reg add \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" /v ProxyServer /d \"";
char o2[]="\" /f";
char ip[100][100]={"183.140.162.58","1.14.1.1"};
strcat(o1,ip[i]);
cout<<strcat(o1,o2)<<endl;
}
发现当数组中出现 ip : 183.140.162.58 之后会自动跳出循环