

#include <iostream>
#include <stdlib.h>

#include "Vector08.h"

int main(void )
{
  unsigned int N=5;

  vector a(N), b(N);

  for (unsigned int i=0; i<N; i++)
  {
    a.seti(i,(double) (rand()%10));
    b.seti(i,(double) (rand()%10));
  }

  std::cout << "a=" << std::endl;
  a.print();

  std::cout << "b=" << std::endl;
  b.print();

  std::cout << "Setting c=a+b" <<std::endl;
  vector c(N);
  c = a+b;
  std::cout << "c=" << std::endl;
  c.print();

  vector d(N-2);
  std::cout << "Setting d=a-b" <<std::endl;
  d = a-b;
  std::cout << "d=" << std::endl;
  d.print();

  return (0);
}

