我正在寻找一种简单的方法来标记字符串输入而不使用非默认库,如Boost等.
例如,如果用户输入forty_five,我想使用_作为分隔符分隔四十和五.
c++ string split token
c++ ×1
split ×1
string ×1
token ×1