+ 2

How can we make a beep sound in cpp? With"\a"?

31st May 2021, 8:29 PM
Hamed Wahabzada
Hamed Wahabzada - avatar
4 Réponses
+ 2
cout << "\a"; Works for me in Linux and Windows
5th Jun 2021, 6:18 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 1
You need only to run a CPP program, where you have "\a" printed, locally on your PC.
31st May 2021, 11:00 PM
Seb TheS
Seb TheS - avatar
+ 1
i don't think you can make a beep sound only with cpp, you're gonna need a sound library linked to your project
31st May 2021, 11:11 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Hey man just use '\a'
2nd Jun 2021, 7:00 PM
Amirhossein Hadavand
Amirhossein Hadavand - avatar