codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <boost/algorithm/string.hpp> #include <locale> #include <iostream> #include <vector> int main() { std::string s = "Boris Schäling"; std::vector<std::string> v; boost::algorithm::split(v, s, boost::algorithm::is_space()); std::cout << v.size() << std::endl; BOOST_FOREACH(std::string elem, v ) { std::cout << elem << std::endl; } }
Private
[
?
]
Run code
Submit