cpp08/ex01/Span.hpp

28 lines
378 B
C++

#ifndef SPAN_HPP
#define SPAN_HPP
#include <string>
#include <iostream>
#include <vector>
class Span
{
private:
unsigned int _n;
std::vector<int> _vec;
public:
Span();
Span(const unsigned int n);
~Span();
Span(const Span& other);
Span &operator=(const Span& other);
int shortestSpan() const;
int longestSpan() const;
void addNumber(int x);
};
#endif