Advertisement
Glenpl

Untitled

Aug 20th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. std::string add_len(std::string sub, std::string buf = "")
  2. {
  3. return "" + ( std::getline(sub, buf) ? buf + " " + std::stoi(buf.size()) + add_len(sub) : "" );
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement