xxxxxxxxxxxxxxxxxxxxxxxx - #include <iostream>#include <queue>#include <stdlib.h> using namespace std\/some compiler couldn't identify system'cls void

xxxxxxxxxxxxxxxxxxxxxxxx - #include <iostream>#include...

This preview shows page 1 - 3 out of 8 pages.

#include <iostream> #include <queue> #include <stdlib.h> //some compiler couldn't identify system('cls') using namespace std; //****************************************************************************** ****************************************************************************** void Confirm(){ std::string data ; //passed or declared as string std::string stpr ; //Do some work. string name, name2; char option; char yes = 'Y'; char exit = 'N'; cout << endl; cout << endl; cout << endl; cout << " " << endl; cout << " * * * CHECK CUSTOMER : * * * " << endl; cout << endl; cout << " ___________________________________________________________________________ " << endl; cout << " | |" << endl; cout << " *************************************************************************** " << endl; cout << endl << endl; cout << endl << endl; cout << " Press 'Y' to continue : "; cin >> option; cout << endl; cout << endl; cout << endl; system ("cls"); cout << endl; while (option == 'Y' || option == 'y') { cout << endl; cout << endl; cout << endl; cout << " " << endl; cout << " * * * CHECK CUSTOMER : * * * " << endl; cout << endl; cout << " ___________________________________________________________________________ " << endl; cout << " | Please Enter Customer name : |" << endl; cout << " *************************************************************************** " << endl; cout << endl; cout << endl;
Image of page 1
cout << endl; cout << " Name from Database : " ; cin >> name; cout << endl; cout << endl; cout << " Customer Name : " ; cin >> name2; cout << endl; cout << endl; cout << endl; if (name == name2) //do work here { cin.ignore(); system("cls"); cout << endl; cout << endl; cout << endl; cout << " * * * CONGRATULATION ! * * * " << endl; cout << endl; cout << " ___________________________________________________________________________ " << endl; cout << " | Customer's Name Match! |" << endl; cout << " | ***************************************************************************|" << endl; cout << " | |" << endl; cout << " | Enjoy the New iPhone 10 ! |" << endl; cout << " | |" << endl; cout << " | Thank You For Your Purchase |" << endl; cout << " | Have a Nice Day ! |" << endl; cout << " | |" << endl; cout << " | ___________________________________________________________________________|" << endl; cout << "" << endl; } else { cin.ignore(); system("cls"); cout << endl; cout << endl; cout << endl; cout << " * * * SORRY ! * * * " << endl; cout << endl;
Image of page 2
Image of page 3

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