1234567891011121314151617181920212223242526272829 |
- struct A {
- int a
- int b;
- }
- struct B {
- int a
- int b;
- int c
- A d
- }
- void main() {
- B b;
- b.a = 1
- b.b = 2
- b.c = 3
- b.d.a = 3
- b.d.b = 5
-
- B* ba = &b;
- ba->d.a = 4
-
- test(b.a);
- test(b.b);
- test(b.c);
- test(b.d.a);
- test(b.d.b);
- }
|