Linear search and 2d arrays?

This is a discussion on Linear search and 2d arrays? within the C Programming forums, part of the General Programming Boards category; Hello everyone, i'm a year 11 student doing a software course for school. I've just being set a project by ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Linear search and 2d arrays?

    Hello everyone, i'm a year 11 student doing a software course for
    school. I've just being set a project by my teacher that requires
    amoungst otherthings for me to conduct a linear search on a 2D
    array.
    The search must be conducted in a separate function and returned the main to be outputed.
    The array in question has an ID number in the far left hand column
    the user will specify the ID and the program must form a search
    for the correct row (i am told by my teacher that it has to perform
    a linear search)
    the program will then return the correct row.

    I would appreciate any input on the topic and if it is possible could it be explained in a simplistic manner as i have not been programming for long.

    Thankyou.

    PS hopefully a copy of my code so far has uploaded please note that it is still in development however if you see any bad habits
    please tell me.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. For loop through a 2D array - just for select rows
    By qwertysingh in forum C Programming
    Replies: 1
    Last Post: 04-17-2009, 08:34 AM
  2. 2d Arrays and pointers
    By Sal79 in forum C Programming
    Replies: 20
    Last Post: 06-02-2007, 08:53 AM
  3. 2D array pointer?
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 04-23-2006, 08:16 AM
  4. 2D Game Programming Tutorials?
    By Zeusbwr in forum Game Programming
    Replies: 9
    Last Post: 11-04-2004, 07:36 AM
  5. Replies: 6
    Last Post: 10-21-2003, 09:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21