"100Mbps"
std::string num (""); std::string str ("100Mbps"); for (int i=0; i < str.length(); i++) { char c = str.at(i); if (c >= '0' && c <= '9') { num += c; // or num.push_back(c) or num.append(c); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)