xtd 0.2.0
hello_world_diagnostics2.cpp

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

#define TRACE
#include <xtd/ctrace>
using namespace xtd;
auto main() -> int {
ctrace << "Hello, World!" << environment::new_line;
}
// This code produces the following debug output :
//
// Hello, World!
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
std::ostream ctrace(nullptr)
Provides an std::ostream for xtd::diagnostics::trace.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8