xtd
0.2.0
Loading...
Searching...
No Matches
sprintf.cpp
Shows how to use xtd::string::sprintf method.
#include <xtd/xtd>
auto
main() ->
int
{
console::out << string::sprintf(
"%s %s %d %c"
,
"string"
,
"literal"
_s, 42,
'a'
) << environment::new_line;
}
// This code produces the following output :
//
// string literal 42 a
Generated on Sun Aug 31 2025 20:45:29 for xtd by
Gammasoft
. All rights reserved.