forked from D-F-D-P/ASUMathLabG09
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
51 lines (37 loc) · 874 Bytes
/
main.cpp
File metadata and controls
51 lines (37 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <iostream>
#include <string>
#include <fstream>
#include "math_lab.h"
#include "matrix.h"
#include "dynamic_array_matrix.h"
#define MATRIX array_matrix.get_matrix()
using namespace std;
int main()
{
math_lab our_math_lab;
our_math_lab.load_file("D:\\projects\\nadertest\\bin\\Debug\\matrix_file.txt");
getchar();
return 0;
}
/* //Test code
dynamic_array_matrix array_matrix;
int index=0;
std::ifstream infile;
string input_string;
string* operations;
infile.open("D:\\projects\\nadertest\\bin\\Debug\\matrix_file.txt");
while(!infile.eof())
{
getline(infile,input_string);
if(input_string.find('[') != -1)
{
MATRIX[index].fill_matrix(input_string);
index++;
}
else
{
// operations = decode(input_string);
}
}
MATRIX[2]=MATRIX[0]+MATRIX[1];
array_matrix.print();*/