Ring the bell on your computer by assigning the \a escape sequence to a variable, then printing that variable. - C++ Language Basics

C++ examples for Language Basics:Console

Description

Ring the bell on your computer by assigning the \a escape sequence to a variable, then printing that variable.

Demo Code

#include <iostream>
using namespace std;
int main()//  w ww .j a  v  a2  s . co m
{
   char bell = '\a';
   cout << bell;   // No newline needed here.
   return 0;
}

Related Tutorials