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