Shows how to use xtd::ustring::sprintf method.
#include <xtd/xtd>
int main() {
console::out << string::sprintf("%s", "string") << environment::new_line;
console::out << string::sprintf("%s", u8"u8string") << environment::new_line;
console::out << string::sprintf("%s", std::string {"string"}) << environment::new_line;
console::out << string::sprintf("%s", string {"string"}) << environment::new_line;
console::out << string::sprintf("%s", std::u8string {u8"u8string"}) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10