Shows how to use xtd::startup class.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/startup>
 
 
namespace main4_example {
  class program {
  public:
      
      for (auto arg : args)
        console::write_line(arg);
        
      return 42;
    }
  };
}
 
 
 
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:71
 
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:175
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10