daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2. #include "Node.h"
  3. #include "iomanip"
  4.  
  5.  
  6. Node::Node()
  7. {
  8. }
  9.  
  10.  
  11. Node::~Node()
  12. {
  13. }
  14. void Node::AppendFIFO(int id, string userName, string password, string `
  15.      
  16. }
  17. void Node::AppendLIFO(int id, string userName, string password, string fName, string lName)
  18. {
  19.     //cout << "Yo" << endl;
  20.     Node *curNode;
  21.     curNode = head;
  22.     cout << "user name:" << userName.length();
  23.     cout << "Password:" << password.length();
  24.     cout << "f name:" << fName.length();
  25.     cout << "l name:" << lName.length();
  26.     while (curNode != nullptr)
  27.     {
  28.  
  29.         curNode = curNode->next;
  30.     }
  31. }
  32. void Node:: display()
  33. {
  34.  
  35. }
  36.      
  37. #pragma once
  38. #include "iostream"
  39. #include "string"
  40. #include "iomanip"
  41.  
  42. using namespace std;
  43.  
  44. class Node
  45. {
  46.     public:
  47.         Node();
  48.         ~Node();
  49.         void AppendFIFO(int, string, string, string, string);
  50.         void AppendLIFO(int, string, string, string, string);
  51.         void display();
  52.  
  53.     private:
  54.         int ID;
  55.         string userName;
  56.         string password;
  57.         string firstName;
  58.         string lastName;
  59.         Node *next;
  60.         Node *head;
  61.  
  62. };
  63.      
  64. #include "stdafx.h"
  65. #include "iostream"
  66. #include "string"
  67. #include "Node.h"
  68. #include "iomanip"
  69.  
  70. using namespace std;
  71.  
  72.  
  73. int main()
  74. {
  75.     Node *LIFO = nullptr;
  76.     Node *FIFO = nullptr;
  77.  
  78.     //The 10 users information for LIFO
  79.     LIFO->AppendLIFO(10, "postMalone", "Asdkc34D", "Austin", "Post");
  80.     LIFO->AppendLIFO(9, "h20", "akdjW78v", "Benny", "Washington");
  81.     LIFO->AppendLIFO(8, "testing", "aklc5kaS", "Timmy", "Trump");
  82.     LIFO->AppendLIFO(7, "Rob-by", "robby3939", "Robert", "Malone");
  83.     LIFO->AppendLIFO(6, "TracyLMoore", "Moore098", "Tracy", "Moore");
  84.     LIFO->AppendLIFO(5, "Billybill", "Bb234", "Bill", "Prescott");
  85.     LIFO->AppendLIFO(4, "beth-09", "09ASDN", "Beth", "Richards");
  86.     LIFO->AppendLIFO(3, "Gabe123", "123ilkkSW", "Gabriel", "Smith");
  87.     LIFO->AppendLIFO(2, "sthomas", "sthom56712", "Shannon", "Thomas");
  88.     LIFO->AppendLIFO(1, "bob", "LKJG840", "Bobby", "Steve");
  89.     LIFO->AppendLIFO(0, "zmoore00", "00SDJ", "Zackary", "Moore");
  90.  
  91.     //The 10 users information for FIFO
  92.     FIFO->AppendFIFO(10, "postMalone", "Asdkc34D", "Austin", "Post");
  93.     FIFO->AppendFIFO(9, "h20", "akdjW78v", "Benny", "Washington");
  94.     FIFO->AppendFIFO(8, "testing", "aklc5kaS", "Timmy", "Trump");
  95.     FIFO->AppendFIFO(7, "Rob-by", "robby3939", "Robert", "Malone");
  96.     FIFO->AppendFIFO(6, "TracyLMoore", "Moore098", "Tracy", "Moore");
  97.     FIFO->AppendFIFO(5, "Billybill", "Bb234", "Bill", "Prescott");
  98.     FIFO->AppendFIFO(4, "beth-09", "09ASDN", "Beth", "Richards");
  99.     FIFO->AppendFIFO(3, "Gabe123", "123ilkkSW", "Gabriel", "Smith");
  100.     FIFO->AppendFIFO(2, "sthomas", "sthom56712", "Shannon", "Thomas");
  101.     FIFO->AppendFIFO(1, "bob", "LKJG840", "Bobby", "Steve");
  102.     FIFO->AppendFIFO(0, "zmoore00", "00SDJ", "Zackary", "Moore");
  103.  
  104.     system("pause");
  105.     return 0;
  106. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top