Quantcast
Channel: BlogoSfera » OS
Viewing all articles
Browse latest Browse all 176

The declaration of ostream_iterator

$
0
0

At the compilation (gcc Linux) of the following simple program: 1 #include <vector> 2 #include <iostream> 3 #include <iterator> 4 #include <algorithm> 5 using namespace std; 6 7 int main() 8 { 9 vector<int> numvec; 10 istream_iterator<int> is; 11 istream_iterator<int> eof; 12 is=istream_iterator<int>(cin); 13 copy(is, eof, back_inserter(numvec)); 14 cout << "Number of values inserted: " [...]

The post The declaration of ostream_iterator appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 176

Latest Images

Trending Articles



Latest Images