Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

system speaker

  • 10-03-2004 11:44AM
    #1
    Closed Accounts Posts: 17


    hi,
    i'm writing some code in C++ and was wondering how do i make the system speaker go 'beep' ???

    When i say system speaker i mean the little one inside the box, not the external speakers.

    cheers,
    dalh.


Comments

  • Closed Accounts Posts: 21 giolla


    All you need to do is cout "\a"

    #include <iostream>
    int main(){
    std::cout << "\a";
    return 0;
    }

    Does any one know how to get it to make different tones in C++?


  • Closed Accounts Posts: 17 dalh


    thanks for that.
    dalh


Advertisement