Skip to content

Instantly share code, notes, and snippets.

@sihoon197
sihoon197 / matrix_calc.cpp
Created May 12, 2020 15:51 — forked from bruceoutdoors/matrix_calc.cpp
Simple C++ console matrix calculator. All it does is add and substract 3x3 matrices.
// simple matrix calculator
#include <iostream>
#include <cstdlib>
#include <limits>
// A 3x3 matrix
const int M_SIZE = 3;
typedef double matrix[M_SIZE][M_SIZE];
// function prototypes