| 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <stdint.h> |
| 4 | |
| 5 | struct First |
| 6 | { |
| 7 | int x; |
| 8 | int y; |
| 9 | float dummy; |
| 10 | First(int X, int Y) : |
| 11 | x(X), |
| 12 | y(Y), |
| 13 | dummy(3.14) |
| 14 | {} |
| 15 | }; |
| 16 | |
| 17 | struct Second |
| 18 | { |
| 19 | int x; |
| 20 | float y; |
| 21 | Second(int X, float Y) : |
| 22 | x(X), |
| 23 | y(Y) |
| 24 | {} |
| 25 | }; |
| 26 | |
| 27 | struct Third |
| 28 | { |
| 29 | int x; |
| 30 | char z; |
| 31 | Third(int X, char Z) : |
| 32 | x(X), |
| 33 | z(Z) |
| 34 | {} |
| 35 | }; |
| 36 | |
| 37 | int main (int argc, const char * argv[]) |
| 38 | { |
| 39 | First first(12,34); |
| 40 | Second second(65,43.25); |
| 41 | Third *third = new Third(96,'E'); |
| 42 | |
| 43 | first.dummy = 1; // Set break point at this line. |
| 44 | first.dummy = 2; |
| 45 | first.dummy = 3; |
| 46 | first.dummy = 4; |
| 47 | first.dummy = 5; |
| 48 | |
| 49 | } |
| 50 | |
| 51 | |