Advertisement
Guest User

Untitled

a guest
May 25th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <iterator>
  4.  
  5.  
  6. using namespace std;
  7.  
  8. int main(int , char *[]) {
  9.  
  10. vector<int> v1 = {0,1,2};
  11. vector<int> v2 <%v1<:0:>,not v1<:1:>?2:1,2%>;
  12.  
  13. copy(v2.begin(),v2.end(),ostream_iterator<int>(cout,","));
  14. cout << endl;
  15. copy(v1.begin(),v1.end(),ostream_iterator<int>(cout,","));
  16. cout << endl;
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement