SyntaxFix
Write A Post
Hire A Developer
Questions
Here's one way:
cout << '\a';
From C++ Character Constants:
Alert: \a