/*
  Name: escape.cpp
  Copyright: AHD c 2006
  Author: Anne Dawson
  Date: 08/01/06 08:32
  Description: demonstrates escape characters
*/

// illustrates the use of the escape sequences \n and \t and \\ and \" and \a

// \n includes a new line in a "string"
// \t includes a tab (a few blank spaces) in a "string"
// \\ includes a \ in a "string"
// \" includes a " in a "string"
// \a includes an alarm sound in a "string"


#include <iostream> // for cin and cout

using namespace std;

int main()
{
	cout << "This is test1";
	cout << "This is test2\n";
	cout << "This is \\test3\n";
	cout << "This is \"test4\"\n";
	cout << "\tThis \"is\" test5\n";
    cout << endl << endl << "Press a key to alert sound...\n\n";
    system("PAUSE"); // outputs the message "Press any key to continue .  .  ."
                     // and waits for as key press
    cout << "\nThe alert sound\a";
    cout << "\n"; // outputs a new (blank) line to the output console
    cout << "the program is now ending...\n";
    system("PAUSE"); // outputs the message "Press any key to continue .  .  ."
                     // and waits for as key press
	return 0; // sends integer 0 back to the operating system
}

