文件名称:test100sell
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
考试时做的一个,写入文件的小程序
已知在文件IN1.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位)、产品名称mc(字符型10位)、单价dj(整型)、数量sl(整型)、金额je(长整型)五部分组成。其中:金额=单价×数量。函数ReadDat()的功能是读取这100个销售记录并存入结构数组sell中-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
已知在文件IN1.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位)、产品名称mc(字符型10位)、单价dj(整型)、数量sl(整型)、金额je(长整型)五部分组成。其中:金额=单价×数量。函数ReadDat()的功能是读取这100个销售记录并存入结构数组sell中-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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
kk.cpp