2017-02-11から1日間の記事一覧
std::string::find_first_not_of を使う。 string::find_first_not_of - C++ Reference find_first_not_ofは指定した文字以外が最初に見つかった位置を返す。 指定の文字が見つからなかった場合はstring::nposを返すので、nposと比較(==)することで「文字…
std::string::find_first_not_of を使う。 string::find_first_not_of - C++ Reference find_first_not_ofは指定した文字以外が最初に見つかった位置を返す。 指定の文字が見つからなかった場合はstring::nposを返すので、nposと比較(==)することで「文字…