Skip to content
Snippets Groups Projects
Commit 035c1a72 authored by thibaud's avatar thibaud
Browse files

correction du struct

parent b59f9977
No related branches found
No related tags found
No related merge requests found
#ifndef _MY_MATRIX_ #ifndef _MY_MATRIX_
#define _MY_MATRIX_ #define _MY_MATRIX_
#include <cstdint> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
typedef enum _error_code { typedef enum _error_code {
OK, ERR OK, ERR
} error_code; } error_code;
struct _matrix typedef struct
{ {
int32_t m, n; int32_t m, n;
int32_t ** data; int32_t ** data;
} matrix; } _matrix;
error_code matrix_alloc(_matrix *mat, int32_t m, int32_t n); 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); error_code matrix_init(_matrix *mat, int32_t m, int32_t n, int32_t val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment