#include <iostream>
#include <sstream>
#include <vector>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
int main()
{
std::string YourStringName = "8573656.5465467.5435325.3253255";
std::vector<long> vectorLong;
boost::tokenizer<> tok(YourStringName);
for(boost::tokenizer<>::iterator i = tok.begin(); i != tok.end(); ++i)
vectorLong.push_back(boost::lexical_cast<long>(*i));
for(size_t n =0; n<vectorLong.size(); ++n)
std::cout << vectorLong[n] << ' ';
std::cout << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGJvb3N0L3Rva2VuaXplci5ocHA+CiNpbmNsdWRlIDxib29zdC9sZXhpY2FsX2Nhc3QuaHBwPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIFlvdXJTdHJpbmdOYW1lID0gIjg1NzM2NTYuNTQ2NTQ2Ny41NDM1MzI1LjMyNTMyNTUiOwogICAgc3RkOjp2ZWN0b3I8bG9uZz4gdmVjdG9yTG9uZzsKICAgIGJvb3N0Ojp0b2tlbml6ZXI8PiB0b2soWW91clN0cmluZ05hbWUpOwogICAgZm9yKGJvb3N0Ojp0b2tlbml6ZXI8Pjo6aXRlcmF0b3IgaSA9IHRvay5iZWdpbigpOyBpICE9IHRvay5lbmQoKTsgKytpKQogICAgICAgIHZlY3RvckxvbmcucHVzaF9iYWNrKGJvb3N0OjpsZXhpY2FsX2Nhc3Q8bG9uZz4oKmkpKTsKCiAgICBmb3Ioc2l6ZV90IG4gPTA7IG48dmVjdG9yTG9uZy5zaXplKCk7ICsrbikKICAgICAgICBzdGQ6OmNvdXQgPDwgdmVjdG9yTG9uZ1tuXSA8PCAnICc7CiAgICBzdGQ6OmNvdXQgPDwgJ1xuJzsKfQo=