#include <xtd/xtd>
enum class cap {title, middle,
end};
template<typename number_t>
auto print_number(
const string&
text, number_t value, cap
c) {
<<
"┌───────────────────────────┬────────────┬──────────────────────────────────┐" <<
environment::new_line
<<
"├───────────────────────────┼────────────┼──────────────────────────────────┤" <<
environment::new_line;
else
}
auto main() -> int {
print_number("0", 0, cap::title);
print_number("42_s8", 42_s8, cap::middle);
print_number("123456789ull", 123456789ull, cap::middle);
}
static constexpr int32 max_value
Definition box_integer.hpp:67
static constexpr int16 min_value
Definition box_integer.hpp:70
static std::ostream out
Gets the standard output stream. A std::basic_ostream<char_t> that represents the standard output str...
Definition console.hpp:52
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition culture_info.hpp:43
static culture_info current_culture() noexcept
Gets the xtd::globalization::culture_info object that represents the culture used by the current appl...
@ c
The C key.
Definition console_key.hpp:92
Contains classes that define culture-related information, including language, country/region,...
Definition culture_info.hpp:20
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:17
const_iterator end() const
Returns an iterator to the end.
Definition read_only_span.hpp:213