Help Two Dimensional Array Searching

Is there anyway that I can search my text file through this two dimensional array so that I can make a list of the title of my movies? The following text file contains the total number of films in the store as the first input of the file. Following the total number of movies the file contains the movie title and details about the movie.
Here is my text file:
3(Total Number of Movies in the Collection)
Titanic
Kate Winslet
Leonardo Dicaprio
Cameron
cameron
20th Century Fox
2
MovieTitle
actFname1 actLname1
actFname3 actLname2
producer1
producer2
comp1 comp2 comp3
copiesOfTheMovie
MovieTitle
actFname1 actLname1
actFname3 actLname2
producer1
producer2
comp1 comp2 comp3
copiesOfTheMovie

Here is my code:
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
#include <iostream>
#include <iomanip>
#include <conio.h>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream inFile("Hey.txt");
inFile.precision(2);
inFile.setf(ios::fixed, ios::showpoint);
const int rows = 10;
const int cols = 10;
string** memberID;
memberID = new string*[rows];
string targetID;
//cout<<"Enter a member ID: ";
//getline(cin, targetID);
for(int i = 0; i < rows; i++)
{
	memberID[i] = new string[cols];
	}

for(int j = 5; j < cols; j++)
{
		for(int i = 0; i < rows; i++)
		{
			
			string tot, title, act1, act2, act3, act4, pro1, pro2, comp1, comp2, comp3, copies, fname, lname, memID;
			inFile >> tot >> title >> act1 >> act2 >> act3 >> act4 >> pro1 >> pro2 >> comp1 >> comp2 >> comp3 >> copies >> fname >> lname >> memID;
			memberID[i][j];
			cout << memberID[i][j] << "\n";
		}
}
inFile.close();

system("PAUSE");
return 0;
}
Topic archived. No new replies allowed.