spigotcpp/Spigot.hpp
A.M. Rowsell aac5409a72 first commit of version ported line by line from python
Not working correctly yet, errors when handling
certain predigits
2023-06-07 02:08:12 -04:00

24 lines
322 B
C++

#ifndef Spigot_h
#define Spigot_h
#include <iostream>
#include <vector>
class Spigot {
public:
/* functions */
Spigot(int requestedNumDigits);
void pump(void);
private:
int numDigits;
std::vector<int> spigotList;
int spigotListLength;
int carry;
std::vector<int> preDigits;
};
#endif