fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct X {
  6. int v;
  7. };
  8.  
  9. void print_X(const X& X)
  10. {
  11. cout << "X.v:" << X.v << endl;
  12. }
  13.  
  14. int main()
  15. {
  16. X x;
  17. x.v = 7;
  18. print_X(x);
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
X.v:7