获取某个网站的ipchar*getipFromHttp(char*http,char*result){constchar*fileName="D:/1.txt";string cmd=string("ping ")+http+string(">")+fileName;system(cmd.c_str());FILE*fp=fopen(fileName,"r");if(fp){charline[512];while(fgets(line,512,fp)){char*fd=strchr(line,'[');if(fd){c...