You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
469 B

#include "vector.hpp"
#include <iostream>
using namespace std;
int main() {
vector v = vector(3);
cnumber one(1,0);
cnumber two(2,0);
2 years ago
cnumber three(3,0);
cnumber four(4,0);
cnumber five(5,0);
cnumber i(0,1);
v[0] = one;
v[1] = two;
v[2] = i;
2 years ago
vector w = vector(3);
w[0] = three;
w[1] = four;
w[2] = five;
cout << "v:" << endl;
cout << v << endl;
2 years ago
cout << "w:" << endl;
cout << w << endl;
cout << "v * w:" << endl;
cout << v * w << endl;
return 0;
}