Guest User

.h

a guest
Nov 25th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #ifndef STATICINTARRAY_H
  2. #define STATICINTARRAY_H
  3.  
  4.  
  5. class StaticIntArray
  6. {
  7. public:
  8. StaticIntArray();
  9. void output();
  10. int get_size(int array[]);
  11. friend StaticIntArray add(const int& value);
  12.  
  13. private:
  14. static const int CAPACITY=20;
  15. int array[CAPACITY];
  16. int itemCount;
  17. };
  18.  
  19. #endif // STATICINTARRAY_H
Add Comment
Please, Sign In to add comment