1 #include <iostream>
   2 using namespace std;
   3 
   4 #include "tableau.hpp"
   5 #include "traitements.hpp"
   6 
   7 // compilation: c++ -o tableau tableau.hpp traitements.hpp main.cpp
   8 
   9 int main() {
  10         Tableau<int,10> T0;
  11         for (size_t i=0; i<10; i++) {
  12                 T0[i]=i*10;
  13         };
  14         
  15         Tableau<float,10> T1 (T0);
  16         
  17         // On fait d'abord une homothetie, puis un ecretage
  18         homo<> f(10.5);
  19         ecret<> g(225);
  20         
  21         T1.print();
  22         T1.transform(f);
  23         T1.print();
  24         
  25         T1.transform(g);
  26         T1.print();
  27 };
  28 
  29