xtd 0.2.0
Loading...
Searching...
No Matches
sprintf_boolean.cpp

Shows how to use xtd::string::sprintf method.

#include <xtd/console>
#include <xtd/environment>
#include <xtd/string>
using namespace xtd;
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;
}
// This code produces the following output :
//
// 1
// 1
// 1
// 1
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10