#include <bits/stdc++.h> using namespace std; vector<string> split(const string& s, const string ®) { //分割函数,分离ip中的"." vector<string> res; string token, str = s; size_t pos; while((pos = str.find(reg)) != string::npos){ token = str.substr(0,...