TODO: les struct imbrique et les affichage struct et pointeurs
This commit is contained in:
parent
40ee0db98d
commit
9fe64cc45e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue