teh program i am writing is supposed to take a user inputted 4 digit code and then compare that to a list of codes given to us in a data file. I want the code to search through the data file sequentially to find a match. how would i do this? Also when i run the code i get this error "Run-Time Check Failure #3 - The variable 'code' is being used without being initialized." didnt i initialize 'code' in line 10?
i thought it held the 300 codes in the data file. how do i get it to read the data and determine if the user input matches. If some could explain how to take data from a data file and put it into an array i would appreciate my book does a terrible job of explaining.