xtd 0.2.0
Loading...
Searching...
No Matches
sprintf_character.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("%c", 'a') << environment::new_line;
//console::out << string::sprintf("%c", L'\u4eb0') << environment::new_line; // Does not work correctly
console::out << string::sprintf("%c", u8'a') << environment::new_line;
//console::out << string::sprintf("%c", u'\u4eb0') << environment::new_line; // Does not work correctly
//console::out << string::sprintf("%c", U'\U0001F428') << environment::new_line; // Does not work correctly
}
// This code produces the following output :
//
// a
// a
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10