Shows how to use xtd::ustring::sprintf method.
#include <xtd/xtd>
int main() {
console::out << string::sprintf("[%10d]", 42) << environment::new_line;
console::out << string::sprintf("[%-10d]", 42) << environment::new_line;
console::out << string::sprintf("[%010d]", 42) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10