Commit 0183926e authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

docs: Modified a C++ example to make it simpler.

parent 04260b51
...@@ -3,12 +3,9 @@ ...@@ -3,12 +3,9 @@
from libcpp.vector cimport vector from libcpp.vector cimport vector
def main(): def main():
cdef vector[int] v cdef vector[int] v = [4, 6, 5, 10, 3]
cdef int i, value
for i in range(10):
v.push_back(i)
cdef int value
for value in v: for value in v:
print(value) print(value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment