Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- .
- .
- .
- } MyInstance;
- void Example() {
- struct { int x; } s1;
- s1.x = 42;
- struct ADifferentType { int x; };
- }
- struct
- {
- float x;
- float y;
- } point;
- class MyClass
- {
- .
- .
- .
- };
- // instance declaration
- MyClass MyInstance; // semicolon here
- class MyClass
- {
- .
- .
- .
- } MyInstance;
- struct MyStruct { ... };
- class MyClass { ... } //inconsistency
- class MyClass{...} MyInstance;
- class MyClass{...} MyInstance1, MyInstance2;
- int a, b, c;
Add Comment
Please, Sign In to add comment