My instructor gave us some sample code and she used a \a1 \a2 \a3 \a4 \a5
Can someone tell me what it is used for? I can’t find it online or in my textbook?
cout<<"\n\t\a\a1----INSERT A NODE IN A BINARY TREE.\a\a";
cout<<"\n\t\a\a2----PRE-ORDER TRAVERSAL.\a\a";
cout<<"\n\t\a\a3----IN-ORDER TRAVERSAL.\a\a";
cout<<"\n\t\a\a4----POST-ORDER TRAVERSAL.\a\a";
cout<<"\n\t\a\a5----EXIT.\a\a";
cout<<"\n\t\a\aENTER CHOICE::\a\a";
\ais “alert”, or “bell”. It’s listed here, for instance. Running this on a terminal with an actual audible bell (or even a visual one, where the whole screen flashes briefly) would surely be horrible. That’s rather strange code to get from an instructor.The sequence
\a1is simply\afollowed by the digit1, it’s not a two-letter escape code.