Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

LightVector_Test.cpp

Go to the documentation of this file.
00001 // LightVector_Test.cpp
00002 
00003 #include "datastructures/vector/LightVector.hpp"
00004 #include <iostream>
00005 using namespace std;
00006 
00012 int main(int argc, char** argv) {
00013 
00014 
00015   int values[] = { 1, 3, 5, 7, 9 };
00016   int len = 5;
00017 
00018   LightVector<int> x(values, len); // , len);
00019 
00020   cout << "x = " << x << endl;
00021 
00022   int sum = 0;
00023   for (LightVector<int>::iterator i = x.begin(); i != x.end(); ++i)
00024     sum += *i;
00025   cout << "sum = " << sum << endl;
00026 
00027 }

Generated on Sun Sep 17 17:50:39 2006 for FIM environment by  doxygen 1.4.4