xtd
0.2.0
hello_world_console3.cpp
The classic first application "Hello, World!" with
xtd::console
class.
#include <xtd/background_color>
#include <xtd/foreground_color>
#include <xtd/reset_color>
using namespace
std;
using namespace
xtd
;
auto
main()->int {
cout <<
background_color
(console_color::blue) <<
foreground_color
(console_color::white) <<
"Hello, World!"
<<
reset_color
() << endl;
}
// This code produces the following output with colors :
//
// Hello, World!
Generated on Mon Oct 9 2023 14:41:56 for xtd by
Gammasoft
. All rights reserved.