#include <cstdlib>
#include <iostream>
using namespace std;
class Matrice {
double donnees[3][3];
c
public:
Matrice();
double& operator()(int i,int j){
return donnees[i][j];
}
Matrice operator*(Matrice M);
Matrice operator+(Matrice M);
// Fonction transposée
Matrice & transpose() {
double tmp;
int n=3;
for (int i=0 ; i<n-1 ; i++)
for (int j=i+1 ; j<n ; j++) {
tmp = donnees[i][j];
donnees[i][j] = donnees[j][i];
donnees[j][i] = donnees[i][j];
}
return *this;
}
// Fonction trace
double trace() {
double z; ...

News de Langage C++