Shows how to use xtd::startup class.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/startup>
namespace startup3_example {
class program {
public:
for (auto arg : args)
console::write_line(arg);
environment::exit_code(42);
}
};
}
auto main() -> int {
return startup::safe_run(startup3_example::program::main);
}
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.h:71
The xtd::collections::specialized namespace contains specialized and strongly-typed collections; for ...
Definition string_collection.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10