From e509f28ba6912c805089085d276fb36e70479591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Coppens?= Date: Tue, 26 Jan 2021 16:27:57 +0100 Subject: [PATCH] That's it for today! --- SM-MaponiA3.cpp | 126 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 106 insertions(+), 20 deletions(-) diff --git a/SM-MaponiA3.cpp b/SM-MaponiA3.cpp index 3111408..4130058 100644 --- a/SM-MaponiA3.cpp +++ b/SM-MaponiA3.cpp @@ -4,36 +4,122 @@ #include using namespace std; -int M=3; -int N=3; +int M = 3; int main() { - int** A = new int*[N]; - for (int i = 0; i < N; i++) { - A[i] = new int[M]; - } - A[0][0] = 1; - A[0][1] = 1; - A[0][2] = -1; - A[1][0] = 1; - A[1][1] = 1; - A[1][2] = 0; - A[2][0] = -1; - A[2][1] = 0; - A[2][2] = -1; + uint i, j, k, l, lbar, tmp; + // Declare and allocate all vectors and matrices + int* p = new int[M+1]; + int* breakdown = new int[M]; - for (int i = 0; i < M; i++) { - for (int j = 0; j < N; j++) { - cout << "A["<