How to make the hardware beep sound with c++?
Thanks
You could use conditional compilation:
#ifdef WINDOWS #include void beep() { Beep(440, 1000); } #elif LINUX #include void beep() { system("echo -e "\007" >/dev/tty10"); } #else #include void beep() { cout << "\a" << flush; } #endif