Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Shablon.h"
- int main()
- {
- const int razmer = 3;
- const int razmer2 = 5;
- double massiv[razmer] = { 1.0, 2.0, 3.0 };
- CVector<double> vect(razmer, massiv);
- vect.print();
- double massiv2[razmer] = { 5.0, 5.0, 5.0 };
- CVector<double> vect2(razmer, massiv2);
- vect2.print();
- double massiv5[razmer2] = { 1.0, 2.0, 3.0, 4.0, 5.0 };
- CVector<double> vect11(razmer2, massiv5);
- vect11.print();
- CVector<double> vect12;
- vect12 = vect2 - vect;
- vect12.print();
- vect.print();
- vect2.print();
- //vect2 = vect;
- //vect2.print();
- //double c = 5.0;
- //CVector<double> vect3;
- //vect3 = vect*c;
- //vect3.print();
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement