Skip to content
Snippets Groups Projects
Header.h 456 B
Newer Older
  • Learn to ignore specific revisions
  • ailyas's avatar
    HEY
    ailyas committed
    #ifndef HEADER_H
    #define HEADER_H
    
    #include <iostream>
    
    class ADT {
    
    public:
    	static const int CAP = 10;
    
    	 ADT();
    
    	 void push_back(int );
    	 int size() const;
    
    	void pop_back();
    
    	int& at_index(int );
    
    
    	 void print(std::ostream&) const;
    
    
    	 bool empty() const;
    
    	bool full() const;
    
    	 int& operator[](int);
    
    private:
    	int data[CAP];
    
    	int dataSize;
    };
    
     std::ostream& operator<<(std::ostream& , const ADT& );
    
    #endif