Use an ostringstream for the output and make the test actually confirm the results.

This commit is contained in:
Zed A. Shaw 2024-08-12 13:33:36 -04:00
parent 38104f60f3
commit 4227ee1cdc
3 changed files with 13 additions and 4 deletions

View file

@ -2,14 +2,16 @@
#include <map>
#include <vector>
#include <array>
#include <sstream>
using namespace std;
class Brainfucker {
size_t dp = 0;
size_t ip = 0;
public:
size_t dp = 0;
size_t ip = 0;
ostringstream out;
array<int, 100> data = {};
string code = {};