fork download
  1.  
  2. #include <stdlib.h>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. class Test
  8. {
  9. public:
  10. Test( int inVal )
  11. : mval( inVal ){}
  12.  
  13. int mval;
  14. };
  15.  
  16. void met(Test pt)
  17. {
  18. cout<<"met() invoked"<<endl;
  19. cout<<pt.mval;
  20. }
  21.  
  22. int main()
  23. {
  24. //Test ot = 25;
  25.  
  26.  
  27. //cout<<ot.mval;
  28.  
  29. met(58);
  30. //cout<<ot.mval;
  31. return 0;
  32. }
  33.  
Success #stdin #stdout 0s 4480KB
stdin
Standard input is empty
stdout
met() invoked
58