Shows how to use xtd::console::out stream.
#include <xtd/xtd>
auto main() -> int {
console::out << "Hello, " << "World!" << environment::new_line;
console::out << "Value = " << 42 << environment::new_line;
console::out <<
"Value (Hex) = 0x" << int32_object(42).
to_string(
"X") << 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;
}
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition box.hpp:148