xtd
0.2.0
hello_world_environment.cpp
The classic first application "Hello, World!" with
xtd::environment
class.
#include <xtd/console>
#include <xtd/environment>
using namespace
xtd
;
auto
main()->int {
console::write_line
(
"Hello, {}!"
,
environment::user_name
());
}
// This code can produces the following output:
//
// Hello, gammasoft71!
Generated on Mon Oct 9 2023 14:41:56 for xtd by
Gammasoft
. All rights reserved.