¿Beep in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

¿Beep in c++?

How can I play a sound in c ++? Use Xubuntu and Code :: Blocks "beep" for example

3rd Feb 2021, 4:48 PM
Paquito Turriano
Paquito Turriano - avatar
2 Answers
+ 2
unfortunally, "\a" (bell control character) doesn't produce sound universally ^^ it would greatly depend on your terminal, and on its configuration... you could google search about this topic, but there's no universal workaround as far as I know :(
3rd Feb 2021, 6:01 PM
visph
visph - avatar
0
Use escape sequence in output of program "\a"
3rd Feb 2021, 5:29 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar