Shows how to use xtd::console::beep method.
#include <xtd/xtd>
#include <thread>
using namespace std::chrono;
using namespace std::this_thread;
auto main(int argc, char* argv[])->int {
for (
int i = 1;
i <= x;
i++) {
console::out << ustring::format(
"Beep number {}.",
i) <<
beep() << environment::new_line;
sleep_for(milliseconds(100));
}
} else
console::out << "Usage: Enter the number of times (between 1 and 9) to beep." << environment::new_line;
}