Shows how to use xtd::startup class.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/startup>
namespace startup1_example {
class program {
public:
static void main() {
for (auto arg : environment::get_command_line_args())
console::write_line(arg);
environment::exit_code(42);
}
};
}
auto main() -> int {
return startup::safe_run(startup1_example::program::main);
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10