xtd 0.2.0
hello_world_console.cpp

The classic first application "Hello, World!" with xtd::console class.

#include <xtd/xtd>
using namespace xtd;
auto main() -> int {
console::write_line("Hello, World!");
}
// This code produces the following output with colors :
//
// Hello, World!
static console_color background_color()
Gets the background color of the console.
static console_color foreground_color()
Gets the foreground color of the console.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
@ blue
The color blue.
Definition console_color.hpp:42
@ white
The color white.
Definition console_color.hpp:54
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8