I wish to load an array which is stored in a text file, e.g. [login to view URL] into the main program at runtime. The code for creating [login to view URL] from the table [login to view URL] has already been produced (please see attached).
I would expect the code to include something similar to the following:
int main()
{
string myArray[6][4];
string *myArray_3_2 = &myArray[3][2];
std::cout << *myArray_3_2 << "\n"; // output is ‘9’
return 0 ;
}
I need to be able to search a particular column in myArray for a specific value. For example:
int i = 3;
string *myArr_i_2 = &myArr[i][2];
std:cout << *myArr_i_2 << "\n"; //output ‘9’
I am of course open to suggestions for an alternative approach to solving the problem.
Regards
Richard