Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Exception.h"
- #include "DinArr.h"
- #include "Vector.h"
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "Russian");
- Vector v1(3, 1);
- Vector v2(3);
- v2[0] = 1;
- v2[1] = 2;
- v2[2] = 3;
- bool rez = v1 == v2;
- cout <<rez << endl;
- v2 = v2 - v1;
- for (int i = 0; i < v2.getSize(); i++) {
- cout << v2[i] << " ";
- }
- cout << endl;
- v2 = v2 * 2;
- for (int i = 0; i < v2.getSize(); i++) {
- cout << v2[i] << " ";
- }
- cout << endl;
- cout << v2*v1 << endl;
- cout << compareByNorma(v1, v2) << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement