fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Butt {
  5. int i;
  6.  
  7. public:
  8. Butt(int x): i(x) {}
  9.  
  10. void print() {
  11. cout << i << " butts!" << endl;
  12.  
  13. }
  14. };
  15.  
  16. bool myFun(Butt b) {
  17. b.print();
  18. }
  19.  
  20. enum { NORTH, EAST, SOUTH, WEST };
  21.  
  22. int main() {
  23. // your code goes here
  24. myFun(EAST);
  25. return 0;
  26. }
  27.  
  28.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1 butts!