Shows how to use xtd::console::read method.
#include <xtd/char_object>
#include <xtd/console>
#include <xtd/convert>
auto main()->int {
auto m1 = "\nType a string of text then press Enter. "
"Type '+' anywhere in the text to quit:\n";
auto m2 = "Character '{0}' is hexadecimal 0x{1:x4}.";
auto m3 = "Character is hexadecimal 0x{0:x4}.";
auto ch = U'0';
do {
try {
if (ch == 0x0a)
} else
}
} while (ch != '+');
}