/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
class matrix
{
public:
matrix(int n, int m, ...) //конструктор для прямоугольной матрицы с заданными элементами double
{
cout << "matrix(int n, int m, ...)" << endl;
}
matrix(int n, double arr, ...) : matrix(n, n, arr) //конструктор для квадратной матрицы с заданными элементами double
{
cout << "matrix(int n, double arr, ...)" << endl;
}
};
int main()
{
matrix D(3, 2, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
matrix E(2, 1.0, 2.0, 3.0, 4.0);
return 0;
}