From 035c1a72ee3793cc460619c19f55fdb9f1e6d7ba Mon Sep 17 00:00:00 2001 From: thibaud <thibaud.hegelbac@etu.hesge.ch> Date: Tue, 3 Dec 2024 15:40:20 +0100 Subject: [PATCH] correction du struct --- matrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix.h b/matrix.h index 86c8e8f..6fe19dc 100644 --- a/matrix.h +++ b/matrix.h @@ -1,17 +1,17 @@ #ifndef _MY_MATRIX_ #define _MY_MATRIX_ -#include <cstdint> +#include <stdint.h> #include <stdbool.h> typedef enum _error_code { OK, ERR } error_code; -struct _matrix +typedef struct { int32_t m, n; int32_t ** data; -} matrix; +} _matrix; error_code matrix_alloc(_matrix *mat, int32_t m, int32_t n); error_code matrix_init(_matrix *mat, int32_t m, int32_t n, int32_t val); -- GitLab