How can i put standart input's every word to a vector?
This is a discussion on How can i put standart input's every word to a vector? within the C++ Programming forums, part of the General Programming Boards category; How can i put standart input's every word to a vector?...
How can i put standart input's every word to a vector?
Or post your attempt?Code:std::vector<std::string> v(std::istream_iterator<std::string>(std::cin), std::istream_iterator<std::string>());![]()
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
Found.