From 31b94a57b2992745b8440c406f02f7d32c4d13ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dubard?= <loic.dubard@ensiie.fr> Date: Thu, 8 Nov 2018 18:25:56 +0100 Subject: [PATCH] tableau fonctionnel --- stackchess.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/stackchess.c b/stackchess.c index 77ae8e0..511b00d 100644 --- a/stackchess.c +++ b/stackchess.c @@ -1,6 +1,17 @@ -#include<stdio.h> -#include<stdlib.h> +#include"tableau.h" -int main(){ + + +int main(int argc, char **argv){ + int N = 6; + if (argc != 1){ + N=strtol(argv[1],NULL,10); + } + + pile **tableau=initialisation(N); + empiler(&(tableau[0][0]), "RN"); + affiche(tableau,N); + + nettoyer(tableau,N); return 0; } -- GitLab