diff --git a/TP6/algebre.c b/TP6/algebre.c new file mode 100644 index 0000000..0458677 --- /dev/null +++ b/TP6/algebre.c @@ -0,0 +1,30 @@ +#include + +#define N 2 + +struct vector { + float _[N]; +}; + +int main() +{ + struct vector X; + void AfficheVect (struct vector X); + + X._[0]= 1; + X._[1]= 2.; + + AfficheVect(X); + + return 1; +} + +void AfficheVect (struct vector X) +{ + + for(int i=0; i