来个组合套装 #include<iostream> #include<sstream> #include<vector> #include<bitset> using namespace std; enum IpType { Code, Ip, Route }; bool isValidString(string str, unsigned int& num, IpType type){ for(auto& item:str){ if(item=='.'){ item=' '; ...