Use an ostringstream for the output and make the test actually confirm the results.
This commit is contained in:
parent
38104f60f3
commit
4227ee1cdc
3 changed files with 13 additions and 4 deletions
|
@ -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 = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue