That's very vague. Do you mean that you want your program to read data from a text file (which could be written using Notepad), and store that data in an array?
When you say "the user selecting the material", do you mean that the user selects the text file that contains the data which is to be stored in the array?
What do you mean by "the calculations are in another"? Do you mean that the results of the calculation are to be stored in another text file?
1) Yes. From what I understand from my supervisor. The data from the text file are in array form, as below:
---------Col 1--Col2
Row 1-(1,1)--(1,2)
Row 2-(2,1)--(2,2)
Row 3-(3,1)--(3,2)
But how do I put that in the sequence in C++, if I want to use the properties (2,1) and (2,2)?
//user select material
int m;
cout << "Input material: " << endl;
cin >> m;
//array from notepad/excel .txt
int newArray[?];
int n = ?;
// Initializing elements of array seperately
for(n=?;n<sizeof(newArray);n++)
{
newArray[n] = n;
}
int b = newArray[?];
Or is the whole thing is wrong?
2) The user chooses the data in rows which suppose to be the materials and the properties are in the columns.
3) Yes. The calculations are in one .cpp and the material properties are in .txt in excel