fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. struct tag
  7. {
  8. int x;
  9. int y;
  10. int z;
  11. };
  12.  
  13. tag integers;
  14.  
  15. integers.x = 12;
  16. integers.y = 34;
  17. integers.z = 56;
  18.  
  19. cout << integers.x << endl;
  20. cout << integers.y << endl;
  21. cout << integers.z << endl;
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
12
34
56