Написание программы, демонстрирующей работу с классом, страница 6

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    if (a.TypeSq()==true){

                                                     a.set();

                                                     a.Info();

                                                     a.ObratMatr();

                                                     a.Info();

                                                     menu();

                                    } else {

                                                     cout<<"Matrix has no inverse"<<endl;

                                                     menu();

                                    }

                  }else if (s=="7"){

                                    cout<<"The calculation of the transposed matrix"<<endl;

                                    int cc,cr;

                                    cout<<"Enter count of columns and rows of the matrix"<<endl;

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    if (a.TypeSq()==true){

                                                     a.set();

                                                     a.Info();

                                                     a.TransMatr();

                                                     a.Info();

                                                     menu();

                                    } else {

                                                     cout<<"matrix can't be the transposition"<<endl;

                                                     menu();

                                    }

                  }else if (s=="8"){

                                    cout<<"Involution"<<endl;

                                    int cc,cr,n;

                                    cout<<"Enter count of columns and rows of the matrix"<<endl;

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    if (a.TypeSq()==true){

                                                     a.set();

                                                     a.Info();

                                                     cout<<"Enter the degree"<<endl;

                                                     cin>>n;

                                                     a=a^n;

                                                     a.Info();

                                                     menu();

                                    } else {

                                                     cout<<"matrix can't be the transposition"<<endl;

                                                     menu();

                                    }

                  }else if (s=="9"){

                                    cout<<"Сalculation of the determinant"<<endl;

                                    int cc,cr;

                                    cout<<"Enter count of columns and rows of the matrix"<<endl;

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    if (a.TypeSq()==true){

                                                     a.set();

                                                     a.Info();

                                                     cout<<"Determinant is "<<a.det(a.r)<<endl;

                                                     menu();

                                    } else {

                                                     cout<<"Determinants can't be calculated"<<endl;

                                                     menu();

                                    }

                  }else if (s=="10"){

                                    cout<<"Calculation of the norm"<<endl;

                                    int cc,cr;

                                    cout<<"Enter count of columns and rows of the matrix"<<endl;

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    a.set();

                                    a.Info();

                                    a.MatrNorm();

                                    menu();

                  }else if (s=="11"){

                                    int cc,cr;

                                    cout<<"Enter count of columns and rows of the matrix"<<endl;

                                    cin>>cc>>cr;

                                    TMatr a(cc,cr);

                                    a.set();

                                    a.Info();

                                    a.MatrType();

                                    menu();

                  }else if (s=="12") cout<<"GOODBYE!"<<endl;

                  else {

                                    cout<<"ERROR!Repeat your selection!"<<endl;

                                    menu();

                  }

}

*****************************************************************************************************************

#include "TMatr.h"

#include <iostream>

void main(){

                  TMatr a;

                  a.menu();

}