TODO: les struct imbrique et les affichage struct et pointeurs

This commit is contained in:
Guillotin Damien 2021-12-13 21:25:27 +01:00
parent 40ee0db98d
commit 9fe64cc45e

View file

@ -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);
}