xtd 0.2.0
hello_world_console3.cpp

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

#include <xtd/background_color>
#include <xtd/console>
#include <xtd/environment>
#include <xtd/foreground_color>
#include <xtd/reset_color>
using namespace xtd;
auto main() -> int {
}
// This code produces the following output with colors :
//
// Hello, World!
Represent background color output manipulator class.
Definition background_color.hpp:24
static std::ostream out
Gets the standard output stream. A std::basic_ostream<char_t> that represents the standard output str...
Definition console.hpp:52
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
Represent foreground color output manipulator class.
Definition foreground_color.hpp:20
Represent reset color output manipulator class.
Definition reset_color.hpp:20
@ 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