xtd 0.2.0
Loading...
Searching...
No Matches
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"World!" << environment::new_line;
console::out << L"Enter your name: ";
string name;
console::in >> name;
console::out << L"Good day, ";
console::out << name;
console::out << L"!" << environment::new_line;
}
// This code produces the following output :
//
// Hello World!
// Enter your name: James
// Good day, James!
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10