#include <iostream>
#include <boost/python.hpp>
Go to the source code of this file.
Definition at line 36 of file test13.cc.
38 int* intlist=
new int [10];
39 for (
int i=0; i<10; i++) intlist[i]= 0;
BOOST_PYTHON_MODULE |
( |
test13 |
| ) |
|
Definition at line 86 of file test13.cc.
void f_operate_list(list &alist)
Definition at line 59 of file test13.cc.
64 for(
int i=0; i<
n; i++) {
void f_operate_list |
( |
list & |
alist | ) |
|
Definition at line 70 of file test13.cc.
72 int* intlist=
new int [10];
73 for (
int i=0; i<10; i++) {
74 intlist[i]= extract<int>(
alist[i]);
79 for (
int i=0; i<10; i++) {
void operate_list(int vec[10])
Definition at line 45 of file test13.cc.
47 for(
int i=0; i<10; i++) {
48 std::cout << vec[i] << std::endl;