Guest User

Untitled

a guest
Jun 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. class MyClass
  2. {
  3. .
  4. .
  5. .
  6. } MyInstance;
  7.  
  8. void Example() {
  9. struct { int x; } s1;
  10. s1.x = 42;
  11.  
  12. struct ADifferentType { int x; };
  13. }
  14.  
  15. struct
  16. {
  17. float x;
  18. float y;
  19. } point;
  20.  
  21. class MyClass
  22. {
  23. .
  24. .
  25. .
  26. };
  27.  
  28. // instance declaration
  29. MyClass MyInstance; // semicolon here
  30.  
  31. class MyClass
  32. {
  33. .
  34. .
  35. .
  36. } MyInstance;
  37.  
  38. struct MyStruct { ... };
  39. class MyClass { ... } //inconsistency
  40.  
  41. class MyClass{...} MyInstance;
  42.  
  43. class MyClass{...} MyInstance1, MyInstance2;
  44.  
  45. int a, b, c;
Add Comment
Please, Sign In to add comment