Advertisement
awsmpshk

Main.cpp

Apr 14th, 2020
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include "list.cpp"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.   int n;
  9.   cin >> n;
  10.   List<int> lst;
  11.   int x;
  12.   for (int i = 0; i < n; ++i)
  13.   {
  14.     cin >> x;
  15.     lst.add(x);
  16.   }
  17.   lst.doubleOdd();
  18.   lst.print();
  19.  
  20.   return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement