Shows how to use xtd::console::out stream.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/int32_object>
auto main() -> int {
console::out << "Hello, " << "World!" << environment::new_line;
console::out << "Value = " << 42 << environment::new_line;
console::out << "Current date = " << date_time::now() << environment::new_line;
console::out << "DayOfWeek = " << day_of_week::monday << environment::new_line;
console::out << "Duration = " << 23_h + 5_min + 24_s << environment::new_line;
}
Represents a boxed integer object.
Definition box_integer.hpp:52
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition box.hpp:109
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10