main1

September 14, 2025 ยท View on GitHub

Shows how to use xtd::startup class.

Sources

  • src/main1.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 if 3 is entered on command line:

/Users/gammasoft71/Projects/xtd/build/xtd.examples/xtd.core.examples/mains/main1/Debug/main1
one
two
three four
five

Contents

  1. 1Sources
  2. 2Build and run