Introduction - If you have any usage issues, please Google them yourself
A test done, write to file a small program
There are 100 known product sales record in the file IN1.DAT, each product sales recorded by the product code DM (character 4), the name of the product MC (character 10), at DJ (integer), the number of SL (integer), the amount of JE (long) is composed of five parts. Among them: amount = price x number. The function ReadDat () function is to read the 100 sales records and sell into the structure of the array