xtd 0.2.0
Loading...
Searching...
No Matches
wconsole.cpp

Shows how to use xtd::console class.

#include <xtd/console>
using namespace xtd;
auto main() -> int {
console::write(L"Hello ");
console::write_line(L"World!");
console::write(L"Enter your name: ");
string name = console::read_line();
console::write(L"Good day, ");
console::write(name);
console::write_line(L"!");
}
// 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.hpp:10