cout endl endl cout Press Y to continue cin option cout endl system cls cout

Cout endl endl cout press y to continue cin option

This preview shows page 4 - 7 out of 8 pages.

"; cout << endl << endl; cout << " Press 'Y' to continue : "; cin >> option; cout << endl; system ("cls"); cout << endl; while (option == 'Y' || option == 'y') { cout << endl; cout << endl; cout << endl; cout << " " << endl; cout << " * * * REGISTER NEW CUSTOMER : * * * " << endl; cout << endl;
Image of page 4
cout << " ___________________________________________________________________________ " << endl; cout << " | Please Enter Customer name : |" << endl; cout << " *************************************************************************** " << endl; cout << endl; cout << endl; cout << endl; cout << " Name : "; cin >> name; cout << endl; cout << endl; cout << endl; customers.push(name); //push to enter new data cout << " Register New Customer? (Y/N) : "; cin >> option; system("cls"); cout << endl; } cout << endl; cout << endl; cout << endl; cout << " * * * THE LIST IS FULL ! * * * " << endl; cout << endl; cout << " ___________________________________________________________________________ " << endl; cout << " | Sorry! You cannot enter more customer. |" << endl; cout << " *************************************************************************** " << endl; cout << endl; cout << endl; cout << endl; cout << " The Last Registered Customer is : " << customers.back() << endl; cout << endl; cout << endl; cout << endl; cout << " The Customer(s) in Queue is : " << customers.size() << endl; cout << endl; cout << endl; cout << endl; cout << " Press 'Y' to view REGISTERED CUSTOMER(S) : "; cin >> option; system("cls"); cout << endl; cout << endl; cout << endl; cout << " * * * CUSTOMER(S) SUCCESSFULLY REGISTERED ! * * * " << endl; cout << endl; cout << " ___________________________________________________________________________ " << endl;
Image of page 5
cout << " | Customer(s) Registered Are : |" << endl; cout << " *************************************************************************** " << endl; cout << endl; while (!customers.empty()) { cout <<"\t\t\t\t\t\t\t\t\t\t\t\t\t\t " ; cout << customers.front() << endl << endl; customers.pop(); //pop to view all registered customer cout << endl; } cin.get(); cout << " ___________________________________________________________________________ " << endl; cout << endl; cout << " Press 'Enter' to proceed to CHECK CUSTOMER : "; cin.ignore(); system("cls"); Check(); } //****************************************************************************** ****************************************************************************** void Menu(){
Image of page 6
Image of page 7

You've reached the end of your free preview.

Want to read all 8 pages?

  • Summer '15
  • DrFadzil
  • Void, ASCII, endl, cout

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes