Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop
  • Category : Windows Develop
  • Tags :
  • Update : 2012-11-26
  • Size : 1kb
  • Downloaded :0次
  • Author :蛛蛛
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
已知在文件IN.DAT中存有10个产品销售记录,每个产品销售记录由产品代码dm(字符型4位)、产品名称mc(字符型10位)、单价dj(整型)、数量sl(整型)、金额je(长整型)几部份组成。其中:金额=单价×数量,可计算得出。编程:函数readData()读取这10个销售记录并存入结构数组sell中。函数sortData()按产品名称从小到大进行排列,若产品名称相同,则按金额从大到小进行排列,最终排列结果仍存入结构数组sell中。函数writeData()把结果输出到文件OUT.DAT中。结构数据类型如下: typedef struct {     char dm[5] /*产品代码*/     char mc[11] /*产品名称*/     int dj /*单价*/     int sl /*数量*/     long je /*金额*/ } PRO PRO sell[MAX] 请根据结构数据类型自己编造有10个产品销售记录的数据文件IN.DAT。(函数readData()、sortData()和writeData()如果需要参数请自己定义,并注释说明)
Packet file list
(Preview for download)
4.c
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
DSSZ is the largest source code store in internet!
Contact us :
1999-2046 DSSZ All Rights Reserved.