Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. maximusAF

    Array with boolean values

    The numbered elements in the array correspond to other values. I need check each element to see if been used or not. For examp. each pass thru a number is called, when a number is called, i need to tell the array true for that array element. If prog is going to call a value of 14, first of...
  2. maximusAF

    Array with boolean values

    Can someone advise on how to create an array with bool values? How you tell each element of bool array if record exist or not? Keep simple as possible.
  3. maximusAF

    Calculate duration between two dates

    I trying to calculate number of days between one date and another. I have good idea of how to do this but not sure efficient. What is the proper algorithm? How you also compute new date given one date and a number of days? Please keep algorithm simple as possible.
  4. maximusAF

    Help with finding End of File (EOF)

    I think I figured it out. I fixed it when I changed it to this: Read record from file loop while NOT EOF { ... ... ... read next record from file } I originally did not have the first read before the loop. Do you always have to put the first read before the loop? That solved my issue, but...
  5. maximusAF

    Help with finding End of File (EOF)

    Hello, I am coding a program that inputs data from a file. I have a loop that will input each line and then output each line. I have the while loop set as: while (! file.EOF()) { ... ) For some reason, the loop will process and output the last record in the file twice. For example, if my...
  6. maximusAF

    Getting min and max from array??

    I need some advice for getting the min and max from an array. I have a loop that reads the number and then calls a void function to do the calculations. My call by reference parameters/variables are not working right. When I output the results to the screen, it shows the max and min as the...

Part and Inventory Search

Back
Top