From 1ee2386f7c8050868256e93a8a861d2df916b7c9 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 31 Jul 2020 21:32:40 +0700 Subject: [PATCH] Add linkedlist in student tag --- tests/work1 | Bin 16568 -> 16568 bytes tests/work1.c | 12 ++++++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/work1 b/tests/work1 index 38a430811c34d630f396ff2e7d763d19c40df43b..d1f9c9dae5c7cc1dd01256fb9cb3b446601ae52d 100755 GIT binary patch delta 405 zcmdnd$hf1CaRUb<=TasHFj%@-kkOT&bApfqgU9iM3PO|P1>V&scpP_K;GB_~2&7kl zlpS~70HQp0n3$TGTUZ(~cyzjMNjvVk2PoF-dcdRkfQZK~BV({EP)-0Oc$^_PF*hmg zxC2W*L{X>f53u6SWBXYY92jcf+URr60ERXQ%-DR<<~cI}BiV~C delta 361 zcmdnd$hf1CaRUb-lbIA^3L0_hzf zWyf6)fGCe0CZ=ZQ7M4Z~9-Xd7(vG{H0gCmyUhrr>AmXvh$QUdOloJ369%l$n%uPx= z?!b}{QPk=B1FX37*nSoT2L`agFG~LX{|^-1;DIDM`HY~98Cd${;R&Dl<$gJa`}Eqr z)@ERE4D;-~<{0YP`PDJRvGY%;N3ZT3pm4B{=3kHIHykhSZ}t<~#5=iw#bAo~em9sIbPM&F_&zS)X NK@iB;e9`7PGXM>_eGvcv diff --git a/tests/work1.c b/tests/work1.c index 53bd904..817d6e4 100644 --- a/tests/work1.c +++ b/tests/work1.c @@ -37,5 +37,17 @@ int main() printf("Hello, %s \n", person2.name); printf("Hello Ptr, %s \n", personPtr->name); + + // using linkedlist + struct student_tag* first = NULL; + struct student_tag* second = NULL; + struct student_tag* third = NULL; + + struct course_tag c1 = { "Computer", 4 }; + struct person_tag p1 = { "Sambo", "121214" }; + first->course_info = c1; + first->student_info = p1; + + return 0; } \ No newline at end of file