Professional Documents
Culture Documents
Calculadora de Matrices C++
Calculadora de Matrices C++
int main()
{
int opcion;
do{
menu();
cin >> opcion;
if( cin.fail() || cin.bad() ){
opcion = 0;
cin.clear();
cin.ignore( '\n', 80 );
}
switch( opcion ){
case 1:
sumaMatrices();
break;
case 2:
restaMatrices();
break;
case 3:
multiplicacionMatrices();
break;
case 4:
matrizInversa();
break;
case 5:
matrizTranspuesta();
break;
case 6:
matrizAdjunta();
break;
case 7:
cout << "\n\nFIN DEL PROGRAMA\n\n";
break;
default:
cout << "\n\nOPCION NO VALIDA\n\n";
break;
}
}while( opcion != 7 );
}
void sumaMatrices()
{
int fil, col;
void restaMatrices()
{
int fil, col;
void multiplicacionMatrices()
{
int filA, colA, filB, colB;
}else
cout << "\n NO SE PUEDEN MULTIPLICAR"
<< "\n EL NUMERO DE COLUMNAS DE LA MATRIZ A"
<< "\nDEBE COINCIDIR CON EL DE FILAS DE LA MATRI B";
void matrizInversa()
{
void matrizTranspuesta()
{
void matrizAdjunta()
{