Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm on another person's Mac-book Pro and I'm trying to output the alarm sound in C++ by outputting "a" with cout. For some reason it's not making any sound when it outputs. Does anyone know why this could be happening? I'm using Eclipse.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
676 views
Welcome To Ask or Share your Answers For Others

1 Answer

Eclipse's shell likely isn't wired up to interpret the classic BELL character correctly.

I can confirm that the bell does operate on Terminal.app however.

Note that the bell character is not part of C++ - it is purely a side effect of the console/terminal in use.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...