Guest User

Parkir.h

a guest
Feb 20th, 2019
8,670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #ifndef PARKIR_H
  2. #define PARKIR_H
  3.  
  4. #include <iostream>
  5. #include <iomanip>
  6.  
  7. class Parkir {
  8.  
  9. private:
  10.  
  11.     struct Node {
  12.  
  13.         int plat;
  14.         Node* next;
  15.     };
  16.  
  17.     Node* head;
  18.     Node* tail;
  19.  
  20.     static int size;
  21.     static int pendapatan;
  22.  
  23.     int getSize() const;
  24.     int getPendapatan() const;
  25.     bool isTrue(int) const;
  26.  
  27. public:
  28.  
  29.     Parkir();
  30.     bool isEmpty() const;
  31.     void menu();
  32.     void addPlat(int);
  33.     void deletePlat(int);
  34.     void displayPendapatan();
  35.     void display();
  36. };
  37.  
  38. #endif // PARKIR_H
Advertisement
Add Comment
Please, Sign In to add comment