Код: Выделить всё
#include
#include
#include
#include
#include
using namespace std;
int main() {
// Создание матрицы
Matrix mat(2, 3);
mat(0, 0) = 1;
mat(0, 1) = 2;
mat(0, 2) = 3;
mat(1, 0) = 4;
mat(1, 1) = 5;
mat(1, 2) = 6;
// Вывод исходной матрицы
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78332823/octave-api-ubuntu-c[/url]