diff --git a/brainfuck/README.md b/brainfuck/README.md index 67cf42f..4ef1ec9 100644 --- a/brainfuck/README.md +++ b/brainfuck/README.md @@ -7,18 +7,22 @@ The default arguments make it use `std::cout` and an empty string as input. You can also use a string as input: + brainfuck(",[.,]", "input"); Or with a stream/container/iterator: + brainfuck(",[.,]", std::input_iterator(std::cin)); You can specify the memory-units: + brainfuck("..."); As long as the type has certain operators. The default output is comma-seperated, except for char. You can specify an output-iterator: + brainfuck("...", "", std::back_inserter(my_vector)); diff --git a/iterators/README.md b/iterators/README.md index 061e5ff..b6a2c8d 100644 --- a/iterators/README.md +++ b/iterators/README.md @@ -1,7 +1,7 @@ counted ======= -```C++ +```c++ for(auto x : counted(v)) { ... x.value ... x.index ... } @@ -17,7 +17,8 @@ There is no const version of it. Doing `for(const auto x : counted(v))` doesn't Example: -```C++ + +```c++ for(auto x : counted(v)) { std::cout << "v[" << x.index << "] = " << x.value << std::endl; x.value *= 2;