Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: Beginner
Nov 27, 2000

Emitting a Beep

The escape sequence '\a' is the ASCII code for a beep. To emit a beep from your program, output this escape sequence to the standard output. For example:

 
const char BEEP = '\a';
cin>>num;
if(num<1)
{
 cout<<BEEP<<"wrong input! Please try again";
}
Danny Kalev
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap