#include <xtd/media/system_sounds>
#include <xtd/console>
#include <xtd/environment>
#include <xtd/startup>
namespace system_sound_example {
class program {
public:
static auto main() {
while (true) {
switch (key_info.key()) {
default: break;
}
}
}
};
}
startup_(system_sound_example::program::main);
static console_key_info read_key()
Obtains the next character or function key pressed by the user. The pressed key is displayed in the c...
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static void exit()
Terminates this process and returns an exit code to the operating system.
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:167
@ a
The A key.
Definition console_key.hpp:88
@ h
The H key.
Definition console_key.hpp:102
@ q
The Q key.
Definition console_key.hpp:120
@ b
The B key.
Definition console_key.hpp:90
@ escape
The ESC (ESCAPE) key.
Definition console_key.hpp:34
@ e
The E key.
Definition console_key.hpp:96
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8