xtd
0.2.0
Loading...
Searching...
No Matches
hello_world_console.cpp
The classic first application "Hello, World!" with
xtd::console
class.
#include <xtd/xtd>
auto
main() ->
int
{
console::background_color(console_color::blue);
console::foreground_color(console_color::white);
console::write_line(
"Hello, World!"
);
}
// This code produces the following output with colors :
//
// Hello, World!
Generated on Sun Aug 31 2025 20:45:29 for xtd by
Gammasoft
. All rights reserved.