first commit
This commit is contained in:
16
Lab2/matrix.cpp
Normal file
16
Lab2/matrix.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
//matrix.cpp
|
||||
#include "matrix.h"
|
||||
int main() {
|
||||
Array a (2);
|
||||
Matrix b (2,2);
|
||||
cout << "input Array: " << endl;
|
||||
cin>>a;
|
||||
cout << "input Matrix: " << endl;
|
||||
cin >>b;
|
||||
//b[2] = a;
|
||||
b[1] = a + b[1];
|
||||
Matrix c(b);
|
||||
b[1][1] = a[1];
|
||||
cout << "c:\n" <<c << "a:\n"<< a << "\nb:\n" << b;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user