Skip to content

Commit

Permalink
Update io.cpp to work with bug fixes to io.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aarikpokras authored Dec 23, 2024
1 parent 2d3ae7f commit f7efa13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/io.cxlbund/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
#include "io.h"
using namespace std;

void loop(void (*what)(void), num<int> times) {
void loop(void (*what)(void), num times) {
for (num i = 0; i < times; i++) {
what();
}
}

void printi(num i) {
std::cout << i.c;
}

str read() {
string out_;
getline(cin, out_);
Expand Down

0 comments on commit f7efa13

Please sign in to comment.