#include <string>
#include <iostream>
std::string <rim(std::string &s, const std::string &chars = "\t\n\v\f\r ") {
s.erase(0, s.find_first_not_of(chars));
return s;
}
int main() {
std::string s = " c python c++ java php ";
ltrim(s);
std::cout << s;
}
/*
run:
c python c++ java php
*/