This commit is contained in:
Emmanuel Srivastava
2024-12-18 10:13:34 +01:00
parent e3f82e9512
commit ae2fc9e63f
3 changed files with 32 additions and 25 deletions

View File

@@ -1,6 +1,34 @@
#include <stdio.h>
#include <stdlib.h>
struct maillon_s {
char valeurs;
struct maillon_s* suivant;
};
typedef struct maillon_s maillon;
void push(pile* p){
}
int main(void){
char ordre[1][2];
printf("La pile attend vos ordres \n > ");
scanf("%c", &ordre);
while(ordre != "q"){
printf("La pile attend vos ordres \n > ");
scanf("%c", &ordre);
if (ordre == "q"){
printf("Au revoir\n");
return EXIT_SUCCESS;
}else if (ordre[0] == "+") {
push(ordre[1]);
} else if (ordre[0] == "-") {
printf("hello");
}
}
return EXIT_SUCCESS;
}