// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// endl, \n , getch()
#include
#include
int main()
{
cout << "Using endl:" << endl ;
cout << "Please pick from below:" << endl << "1.)Hi" << endl << "2.)Bye" << endl ;
// endl creates a new line, this would be the same
// using \n which is the newline character
cout << "\nUsing \\n:\n" ; // notice the \\n (this allows me to print \n out)
cout << "Please pick from below:\n 1.)Hi\n 2.)Bye\n" ;
getch() ; // pauses the screen until user hits any button
return 0 ;
}
// Output is ...
//
// Using endl:
// Please pick from below:
// 1.) Hi
// 2.) Bye
//
// Using \n
// Please pick from below:
// 1.) Hi
// 2.) Bye
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)