fork(1) download
  1. #include <iostream>
  2.  
  3. class Hito {
  4. public:
  5. int n;
  6. Hito(int n) : n(n) {}
  7. };
  8.  
  9. int main() {
  10. Hito a(3);
  11. Hito b = Hito(4);
  12. std::cout << a.n << std::endl;
  13. std::cout << b.n << std::endl;
  14. }
  15. /* end */
  16.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
3
4