资源列表
[数学计算/工程计算] 3
说明:函数ReadDat()实现从文件IN.DAT中读取一篇英文文章存入到字符串数组xx中,请编制函数StrOL(),其函数的功能是:以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排。最后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组xx中,最后调用函数writeDat()把结果xx输出到文件OUT6.DAT中。-Function ReadDat () to read from a file IN.DAT an article in English into the string<房飞洒> 在 2025-06-13 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] 4
说明:已知在文件IN.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位),产品名称mc(字符型10位),单价dj(整型),数量sl(整型),金额je(长整型)五部分组成。其中:金额=单价*数量计算得出。函数ReadDat()是读取这100个销售记录并存入结构数组sell中。请编制函数SortDat(),其功能要求: 按产品名称从小到大进行排列,若产品名称相等,则按金额从小到大进行排列,最终排列结果仍存入结构数组sell中,最后调用函数WriteDat()把结果输出<房飞洒> 在 2025-06-13 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] DIJKSTRA
说明:Dijkstra s algorithm.For a given source vertex (node) in the graph, the algorithm finds the path with lowest cost (i.e. the shortest path) between that vertex and every other vertex.<andrushkutzzaa> 在 2025-06-13 上传 | 大小:1kb | 下载:0