fork download
  1. struct star
  2. {
  3. int x ;
  4. int y ;
  5.  
  6. star() = default ;
  7. star(const star&) = default ;
  8. star(int _x, int _y) :x(_x), y(_y) {}
  9. };
  10.  
  11. struct collection
  12. {
  13. int x = 0;
  14. star starArray[20];
  15. };
  16.  
  17. int main()
  18. {
  19. collection collOfStars ;
  20. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty