fork download
  1. #include <iostream>
  2.  
  3. struct CubbiPoint
  4. {
  5. float p[5]
  6. , &x {p[0]}
  7. , &y {p[1]}
  8. , &z {p[2]}
  9. , &u {p[3]}
  10. , &v {p[4]};
  11. };
  12.  
  13. int main()
  14. {
  15. CubbiPoint cp;
  16. cp.x = cp.y = cp.z = 0.0f;
  17. cp.u = cp.v = 0.0f;
  18. for(float const &f : cp.p)
  19. {
  20. std::cout << f << std::endl;
  21. }
  22. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0
0
0
0
0