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