18 lines
312 B
C++
18 lines
312 B
C++
#include "pip.h"
|
|
#include "pivector2d.h"
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
PIVector2D<double> v(2, 2, PIVector<double>() << 1 << 2 << 3 << 4);
|
|
piCout << v;
|
|
PIByteArray ba;
|
|
ba << v;
|
|
piCout << ba.size();
|
|
PIVector2D<double> v2;
|
|
ba >> v2;
|
|
piCout << v2;
|
|
piCout << v2[0][1];
|
|
return 0;
|
|
}
|
|
|