Skip to content
Snippets Groups Projects
Commit d5037ad5 authored by jerome.maison's avatar jerome.maison
Browse files

exo3

parent 0febb1da
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ LDFLAGS:=-lm
ex3: ex3.c
$(CC) $(CFLAGS) -c $@ $^ $(LDFLAGS)
exo3: exo3.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o ex3
rm -f *.o exo3
#include <stdio.h>
#include <stdbool.h>
typedef struct element{
int data;
struct dll *next; // go to tail
struct dll *prev; // go to head
}element;
typedef struct dll
{
element *pos;
element *head;
}dll;
dll dll_creat();
void dll_print();
int main() {
int len;
int val1;
int val2;
int val3;
int list = scanf("%d %d %d %d", &len, &val1, &val2, &val3);
// printf("%d\n%d\n%d\n%d\n", len, val1, val2, val3);
}
\ 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