TODO: les struct imbrique et les affichage struct et pointeurs
This commit is contained in:
parent
40ee0db98d
commit
9fe64cc45e
|
@ -1,7 +1,5 @@
|
||||||
main{
|
main{
|
||||||
typedef Point = struct { int x int y int z };
|
typedef Point = struct { struct { int a int b } x int y int z };
|
||||||
Point p = {1 2 3};
|
Point p = { {1 2} 3 4};
|
||||||
print (p.x);
|
print (p.x.a);
|
||||||
print (p.y);
|
|
||||||
print (p.z);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue