21 std::string::size_type pos=0;
22 std::string::size_type prev_pos=0;
23 while((pos=input.find_first_of(
' ',pos)) != std::string::npos){
24 m_lsubstring.push_back(input.substr(prev_pos,pos-prev_pos));
28 m_lsubstring.push_back(input.substr(prev_pos,pos-prev_pos));
29 m_nword=m_lsubstring.size();
33 return m_lsubstring[
num-1];
41 int i= atoi(m_lsubstring[
num-1].c_str());
50 int i= atol(m_lsubstring[
num-1].c_str());
59 float x= atof(m_lsubstring[
num-1].c_str());
int intpiece(const int &num)
float numpiece(const int &num)
std::string piece(const int &num)
long longpiece(const int &num)