Shows how to use xtd::startup class.
#include <xtd/console>
#include <xtd/startup>
namespace startup4_example {
class program {
public:
for (auto arg : args)
return 42;
}
};
}
auto main() -> int {
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static int safe_run(main_function_t main_function)
Safely call the specified application's main entry point.
Definition startup.hpp:47
xtd::array< xtd::string > argument_collection
Represents the collection of arguments passed to the main entry point method.
Definition argument_collection.hpp:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8