Advertisement
Guest User

Untitled

a guest
May 5th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <fstream>
  4. #include <string>
  5. #include "Admin.h"
  6.  
  7. using namespace std;
  8.  
  9.  
  10. Admin::Admin()
  11. {
  12. }
  13.  
  14.  
  15. Admin::~Admin()
  16. {
  17. }
  18.  
  19. void Admin::addItem()
  20. {
  21.  
  22. }
  23. void Admin::deleteItem()
  24. {
  25.  
  26. }
  27. void Admin::updateQty(int)
  28. {
  29.  
  30. }
  31. void Admin::updateCost(double)
  32. {
  33.  
  34. }
  35.  
  36. void Admin::validateInput(string uName, string pWord)
  37. {
  38. while (uName != "admin" || pWord != "password")
  39. {
  40. cout << "The username or password you have entered is incorrect. Please try again." << endl;
  41. cout << "Username:" << endl;
  42. cin >> uName;
  43. cout << "Password:" << endl;
  44. cin >> pWord;
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement