Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/ocaml/stl/example.h
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

18 lines
366 B
C++

/* File : example.h -- stolen from the guile std_vector example */
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <numeric>
using std::string;
double vec_write(std::vector<string> v) {
int n = 0;
for( std::vector<string>::iterator i = v.begin();
i != v.end();
i++ )
printf( "%04d: %s\n", ++n, i->c_str() );
}