From 9fe64cc45e576d81d6ff585d1b9be20b7e130ccf Mon Sep 17 00:00:00 2001 From: Guillotin Damien Date: Mon, 13 Dec 2021 21:25:27 +0100 Subject: [PATCH] TODO: les struct imbrique et les affichage struct et pointeurs --- src/fichiersRat/src-rat-tam-test/struct1.rat | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/fichiersRat/src-rat-tam-test/struct1.rat b/src/fichiersRat/src-rat-tam-test/struct1.rat index 946038a..ee3d389 100644 --- a/src/fichiersRat/src-rat-tam-test/struct1.rat +++ b/src/fichiersRat/src-rat-tam-test/struct1.rat @@ -1,7 +1,5 @@ main{ - typedef Point = struct { int x int y int z }; - Point p = {1 2 3}; - print (p.x); - print (p.y); - print (p.z); + typedef Point = struct { struct { int a int b } x int y int z }; + Point p = { {1 2} 3 4}; + print (p.x.a); }