fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class test {
  5. public:
  6. int a;
  7.  
  8. void funkcja() { funkcja(a); }
  9.  
  10. void funkcja (int wartosc) { cout << wartosc << endl; }
  11. };
  12.  
  13. int main() {
  14. test t;
  15. t.a = 42;
  16. t.funkcja();
  17. return 0;
  18. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
42