Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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