CPP09/ex02/inc/Jacobstahl.hpp
2026-04-15 18:09:23 +02:00

21 lines
413 B
C++

#pragma once
#include <vector>
class Jacobstahl
{
public:
Jacobstahl();
Jacobstahl(const Jacobstahl &other);
Jacobstahl(Jacobstahl &&other) noexcept;
Jacobstahl &operator=(const Jacobstahl &other);
Jacobstahl &operator=(Jacobstahl &&other) noexcept;
~Jacobstahl();
int get(int n);
private:
int getRecursive(int n);
std::vector<int> _jacobstahl_numbers;
};