fork(4) download
  1. #include <iostream>
  2. class test
  3. {
  4. int s{3};
  5. public:
  6. int get_s()
  7. { return s; }
  8. };
  9. int main() {
  10. struct test::test s;
  11. std::cout<<s.get_s();
  12. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
3