标签:ring str erase span pre col i++ ras class
for (i = 0; i < s.size(); i++) { if (s[i] == ‘0‘) { s.erase(i,1); i--; } }
删除string中的所有0.
stl string的erase方法
原文地址:https://www.cnblogs.com/legendcong/p/9611654.html