fork download
  1. struct Punkt {
  2. Punkt(int x, int y): x(x), y(y) { ; }
  3.  
  4. private:
  5. int x, y;
  6. };
  7.  
  8. struct Odcinek {
  9. Odcinek(Punkt a, Punkt b): a(a), b(b) { ; }
  10.  
  11. private:
  12. Punkt a, b;
  13. };
  14.  
  15. int main() {
  16. Odcinek(Punkt(123, 123), Punkt(1231, 1211));
  17. return 0;
  18. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty