sprintfwithalignment

July 4, 2024 ยท View on GitHub

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

Sources

src/sprintf_with_alignment.cpp

CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output (with colors)

[        42]
[42        ]
[0000000042]

Contents

  1. 1Sources
  2. 2Build and run