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 T1(10); 11 for (size_t i=0; i<10; i++) { 12 T1[i]=i*10; 13 }; 14 15 // On fait d'abord une homothetie, puis un ecretage 16 homo f(10.5); 17 ecret g(225); 18 19 T1.print(); 20 T1.transform(f); 21 T1.print(); 22 23 T1.transform(g); 24 T1.print(); 25 }; 26 27