Show how to use format xtd::format class with alignment.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/string>
auto main() -> int {
console::out << string::format("[{,10}]", 42) << environment::new_line;
console::out << string::format("[{,-10}]", 42) << environment::new_line;
console::out << string::format("[{:D10}]", 42) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10