From bcbcbdcd37b5713519491233ababb5ae7ca4a684 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sun, 2 Aug 2020 11:00:17 +0700 Subject: [PATCH] Add struct and linked list example on struct obj --- tests/test1.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/test1.c diff --git a/tests/test1.c b/tests/test1.c new file mode 100644 index 0000000..240f299 --- /dev/null +++ b/tests/test1.c @@ -0,0 +1,25 @@ +#include "stdio.h" +#include "stdlib.h" + +struct person { + char name[20]; + int age; +}; + +struct student { + int id; + struct person info; + struct student *next; +}; + +void add_first(); +void add_last(); +void remove_first(); +void remove_last(); +void show(); +void quite(); + +int main() { + + printf("Goodbye!"); +} \ No newline at end of file