Try writing a single loop that looks at the one column in each row that contains the student id value.
Type: Posts; User: Norm
Try writing a single loop that looks at the one column in each row that contains the student id value.
Why are there nested loops? The loop only needs to look at one column in each row. The one where the student id is located.
The other columns in the row contain other data about the student.
I...
Post the search code you are working on.
The pseudo code I posted was a list of the steps the program could take to do the search. The search is done in a simple loop that looks at each row for...
Look at what is in the array. Each row has data for one student. One of the columns in the row has the student id.
The search loop should look at the student id in each row. That can be done with...
Start with a loop to go through the elements in the array.
Look at the 2 dim array and see what indexes to use to access the element that you want to compare against.
What is a "normal" array? In the OP's 2 dim array, each row has related data that the OP wants to print depending on a match with the data in the first column.
How will the program do that step? What are the steps required to do the search?
There are no statements in the posted code to do the search. What have you tried so far?
Can you describe the steps the program must take to do the search?
Post the code you are working on and ask questions about the problems you are having.
What problems are you having with writing the code to find the matching id?
Where is the id located? Where are the statements in the posted code that searches for the id?
Can you explain what problems you are having?