sprintf_class

September 14, 2025 ยท View on GitHub

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

Sources

  • src/sprintf_class.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)

Jean-Luc Picard
William Riker
Data
Beverly Crusher
Geordi La Forge
Worf
Tasha Yar

Contents

  1. 1Sources
  2. 2Build and run