Skip to content
Snippets Groups Projects
Commit bdd951cd authored by remi.greub's avatar remi.greub
Browse files

debut de main

parent 98ee6e42
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,29 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <puissance4.h>
int main(int argc, char** argv){
if((argc) > 1 && (argc <= 3)){
printf("il manque des arguments\n");
return EXIT_FAILURE;
}
int width = 0;
int height = atoi(argv[1]);
if(argc < 3){
width = atoi(argv[1]);
}else{
width = atoi(argv[2]);
}
return EXIT_SUCCESS;
}
\ No newline at end of file
}
// dessine une quadrillage puissance4.h
// créé un quadrillage virtuel puissance4.h
// trouve qui a gagner puissance4.h
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment