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?
nt2mchAsked:
Who is Participating?
 
nietodConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.