fork download
  1. #include <iostream>
  2.  
  3. struct Ex
  4. {
  5. int x, y;
  6. Ex(int x, int y)
  7. {
  8. x = x;
  9. y = y;
  10. }
  11. };
  12.  
  13. int main()
  14. {
  15. Ex e (3, 4);
  16. std::cout << e.x << ", " << e.y << std::endl;
  17. }
  18.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0, 0