first commit
This commit is contained in:
24
Lab5/matrix.cpp
Normal file
24
Lab5/matrix.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
//matrix.cpp
|
||||
|
||||
#include "matrix.h"
|
||||
|
||||
int main() {
|
||||
|
||||
Array a(2); //Sätt till 3 om du vill ha SizeError
|
||||
|
||||
Matrix b (2,2);
|
||||
|
||||
cout << "input Array: " << endl;
|
||||
|
||||
cin>>a;
|
||||
|
||||
cout << "input Matrix: " << endl;
|
||||
|
||||
cin >>b;
|
||||
|
||||
|
||||
|
||||
try {
|
||||
|
||||
// b[2] = a; //Ta med om du vill ha RangeError
|
||||
|
||||
Reference in New Issue
Block a user