// test-application for class My3Vector // T3Vector.cpp // #include // pre-prozessor command #include "My3Vector.h" using namespace std; // declare namespace int main() { My3Vector a, b(1.,1.,-1.), c(0.,2.,1.); // create 3 ThreeVec objects a = b.Add(c); // add ThreeVec b and c, result is stored in a cout << a.Length() << endl; a.Print(); b.Print(); c.Print(); }