I\'ve been trying to find the solution for this all day! You might label this as re-post but what I\'m really looking for is a solution without using boost lexical c
If you want to store (to a vector for example) all the doubles of a line
#include #include #include int main() { std::istream_iterator in(std::cin); std::istream_iterator eof; std::vector m(in,eof); //print std::copy(m.begin(),m.end(),std::ostream_iterator(std::cout,"\n")); }