 
        
        
          Добавил:
          
          
        
        
    
            Tushkan
            
            
            
            
            
            Опубликованный материал нарушает ваши авторские права? Сообщите нам.
          
          Вуз:
          Предмет:
          Файл:Лабораторные работы (2) / laba9 / sclass
.cpp// Создание простого класса
// sclass.cpp - Основной модуль
#include <stdio.h>
#include <iostream.h>
#include "sclass.h"
int main()
{
  Matrix *matrix1 = new Matrix();
 // matrix1 Matrix;                // Создание матрицы 3х3 с элем. 10
  matrix1->show(); printf("\n");
 
  Matrix *matrix2 = new Matrix(*matrix1, 7);
  matrix2->show(); printf("\n");
 
  Matrix *transform = new Matrix(*matrix2, -6);
  transform->MatrixI(5);
  transform->show(); printf("\n");
                                // Среднее арифметическое
//  double ioy = transform.matrix_to_double();
  
  printf("%lf\n\n", double(*transform));
  cin.get();
  return 0;
}
          Соседние файлы в папке laba9
          
      
    
    
    
          