Browse Source

stupid md

master
Joshua Moerman (@Kassalade) 11 years ago
parent
commit
2420a8c61a
  1. 4
      brainfuck/README.md
  2. 5
      iterators/README.md

4
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<char>(std::cin));
You can specify the memory-units:
brainfuck<int>("...");
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));

5
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;