fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class X
  5. {
  6. int member;
  7. public:
  8. void funk()
  9. {
  10. member = 7;
  11. int member;
  12. member = 10;
  13. cout << this->member << '\n';
  14. cout << member << '\n';
  15. }
  16. };
  17.  
  18. int main() {
  19. X x;
  20. x.funk();
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
7
10