2022-07-16 10:47:29 +02:00
|
|
|
#include "vector.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
|
|
vector v = vector(3);
|
|
|
|
cnumber one(1,0);
|
|
|
|
cnumber two(2,0);
|
2022-07-16 16:54:10 +02:00
|
|
|
cnumber three(3,0);
|
|
|
|
cnumber four(4,0);
|
|
|
|
cnumber five(5,0);
|
2022-07-16 10:47:29 +02:00
|
|
|
cnumber i(0,1);
|
|
|
|
v[0] = one;
|
|
|
|
v[1] = two;
|
|
|
|
v[2] = i;
|
|
|
|
|
2022-07-16 16:54:10 +02:00
|
|
|
vector w = vector(3);
|
|
|
|
w[0] = three;
|
|
|
|
w[1] = four;
|
|
|
|
w[2] = five;
|
|
|
|
cout << "v:" << endl;
|
2022-07-16 10:47:29 +02:00
|
|
|
cout << v << endl;
|
2022-07-16 16:54:10 +02:00
|
|
|
cout << "w:" << endl;
|
|
|
|
cout << w << endl;
|
|
|
|
cout << "v * w:" << endl;
|
|
|
|
cout << v * w << endl;
|
2022-07-16 10:47:29 +02:00
|
|
|
return 0;
|
|
|
|
}
|