Skip to content
Snippets Groups Projects
Select Git revision
  • 6b63727911ee07d88729c6a19f28a63670cb74e7
  • 2025ss default
  • 2024ss
  • 2023ss
  • 2022ss
  • 2021ss
  • 2020ss
  • 2019ss
  • 2018ss
9 results

constructors-01.cpp

Blame
  • constructors-01.cpp 165 B
    #include <stdio.h>
    
    struct Hello
    {
      void hello ();
    };
    
    void Hello::hello ()
    {
      printf ("Hello, world!\n");
    }
    
    int main ()
    {
      Hello h;
      h.hello ();
      return 0;
    }