[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Sound-C++ newbie!

Sure this is an easy one! But I can't seem to find it in my books. Anyway, I am trying to put in an audible beep if the user enters an invalid entry. Using Borland C++ compiler. How do i go about doing this?
0
nt2mch
Asked:
nt2mch
  • 2
1 Solution
 
nietodCommented:
I assume this is for a windows program.  If so use the Beep() or MessageBeep() Windows API procedures.
0
 
nietodCommented:
If this is for a DOS program, you can write a BEL control character to the console, like

const char BEL = 7;
cout << BEL;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now