Start vector management
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dd3db36b1a
commit
eb64659740
27 changed files with 3908 additions and 267 deletions
19
Examples/scilab/vector/example.cpp
Normal file
19
Examples/scilab/vector/example.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* File : example.cpp */
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
class opt {
|
||||
public:
|
||||
void set_lower_bound(const std::vector<double> &v) {
|
||||
double sum = 0;
|
||||
std::cout << "coucou" << std::endl;
|
||||
for (int i = 0; i < v.size(); i++) {
|
||||
sum += v[i];
|
||||
std::cout << v[i] << std::endl;
|
||||
}
|
||||
//return sum;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue