xtd 0.2.0
wconsole2.cpp

Shows how to use xtd::wconsole class.

#include <xtd/console>
#include <xtd/environment>
using namespace xtd;
auto main() -> int {
console::out << L"Hello ";
console::out << L"Enter your name: ";
string name;
console::in >> name;
console::out << L"Good day, ";
console::out << name;
}
// This code produces the following output :
//
// Hello World!
// Enter your name: James
// Good day, James!
static std::istream in
Gets the standard input stream. A std::basic_istream<char_t> that represents the standard input strea...
Definition console.hpp:47
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.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8