1 #+Title: a collection of examples for ob-C tests
5 :ID: fa6db330-e960-4ea2-ac67-94bb845b8577
8 #+begin_src cpp :includes "<iostream>" :results silent
14 #+begin_src cpp :var q=12 :includes "<iostream>" :results silent
20 #+begin_src cpp :var q=12 :var p=10 :includes "<iostream>" :results silent
26 #+begin_src cpp :var q="word" :includes '(<iostream> <cstring>) :results silent
27 std::cout << q << ' ' << strlen(q);
32 #+begin_src cpp :defines N 42 :includes "<iostream>" :results silent
39 #+begin_src cpp :includes "<iostream>" :results vector :results silent
40 for (int i=1; i<3; i++) {
41 std::cout << i << '\n';