Shows how to use xtd::console::read_line method.
#include <xtd/console>
#include <xtd/environment>
auto main() -> int {
console::out << "Hello ";
console::out << "World!" << environment::new_line;
console::out << "Enter your name: ";
string name;
console::in >> name;
console::out << "Good day, ";
console::out << name;
console::out << "!" << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10