fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class foo {
  5. int x, y;
  6. public:
  7. foo(int x, int y) : x(x), y(y) {}
  8. void show() { cout << x << " " << y << endl; }
  9. };
  10.  
  11. int main() {
  12. foo f(123,987);
  13. f.show();
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
123 987