Advertisement
awsmpshk

Main.cpp

Apr 14th, 2020
175
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement