登录
首页 » Visual C++ » 314

314

于 2013-05-28 发布 文件大小:243KB
0 78
下载积分: 1 下载次数: 2

代码说明:

  有一存储很多商品数据(每件商品的属性先后包括:品名、规格、单价(有小数位)、数量,数据的最长长度分别为20、10、6、5,在文件中以空格为分隔,每个商品的数据占一行)的文本文件,从键盘输入某种商品的品名,要求在文件中查找有无相应品名商品(可能有多条记录或没有),若有则在屏幕上显示出相应的商品的品名、规格、数量、单价(显示时,品名、规格、数量、单价之间使用逗号(,)作分隔,单价显示时只显示2位小数),若无则显示没有相应品名的商品。 (There are a lot of goods stored data (each item has the attributes include: name, size, price (with decimal places), quantity, the maximum length of the data were 20,10,6,5, a space in the file is separated The data for each item per line) text file, input from the keyboard of a commodity name, asked whether the corresponding file for the product name (may be multiple records or did not), if it is displayed on the screen of the corresponding product name, size, quantity, unit price (display, name, size, quantity, unit price between a comma (,) as a separator, price display shows only two decimal places), if not then show no corresponding product name .)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • gest
    void swap1(int x, int y) //值传递 void swap2(int *px, int *py) //指针传递 void swap3(int &x, int &y) //引用传递 的使用(void swap1(int x, int y) //值传递 void swap2(int*px, int*py) //指针传递 void swap3(int &x, int &y) //引用传递 的使用)
    2012-04-30 16:41:44下载
    积分:1
  • YUESEFU
    约瑟夫问题的程序代码,好用实惠,棒棒棒棒棒棒(This is no problem.)
    2012-05-05 17:17:58下载
    积分:1
  • mm
    说明:  共享内存实验代码,该实验要求利用共享内存实现文件的打开和读写操作,基于linux平台。(Shared memory experimental code, the experiment requires the use of shared memory to achieve file opening and reading and writing operations, based on the Linux platform. )
    2017-05-23 19:11:06下载
    积分:1
  • traffic
    [基本要求] (1)提供对城市信息进行编辑(如:添加功删除)的功能 (2)城市之间有两面种交通工具:火车和飞机。提供对列车时间表和飞机航班进行编辑(增设或删除)的功能。 (3)提供两面种最优决策:最快到达或最省钱到达。全程只考虑一种交通工具。 (4)旅途中耗费的总时间应该包括中转站的等候时间。 (5)咨询以用户和计算机的对话方式进行。由用户输入起始站、终点站、最优决策原则和交通工具,输出信息:最快需要多长时间才能到达或者最少需要多少旅费才能到达,并详细说明依次于何时坐哪一趟列车哪一次班机到何地。 [实现提示] (1)对全国城市交通图和列车时刻表及飞机航班表的编辑,应该提供文件形式输入和键盘输入两种方式。飞机航班表的信息包括:起始站台票出发时间、终点站的到达时间和票价;列车时刻表则根据交通图给出各个路段的详细信息。 (2)以邻接表作交通图的存储结构,表示边的结点内除了含有邻接点的信息外,还应包括交通工具、路程中消耗的时间和花费以及出发和到达的时间等多项属性。 ()
    2008-07-07 00:17:13下载
    积分:1
  • Hongkuangs
    vc作图,已画好的红框随着鼠标的移动而移动,当鼠标点击后,红框停在鼠标点击的位置后再变化(vc mapping, has drawn a good red frame and moves with the mouse when the mouse click, mouse click to stop the red line and then change position)
    2014-06-20 20:52:06下载
    积分:1
  • ReadColor
    一个读取屏幕上当前鼠标点颜色值的小程序,对于分析屏幕上的颜色有帮助。(A read on the screen the current mouse point color value of small procedures, the analysis of color on the screen has to help.)
    2008-05-26 09:26:35下载
    积分:1
  • diorama-1.1.1
    DRM发射和接收端完整仿真,包括编解码,同步(时间同步和频率同步),调制解调,均衡等(DRM-side transmitting and receiving a complete simulation, including the coding and decoding, synchronized (time synchronization and frequency synchronization), modulation and demodulation, balanced, etc.)
    2021-03-17 16:39:21下载
    积分:1
  • max232
    ds 1202 pdf ds 1202 pdf
    2009-07-03 19:44:28下载
    积分:1
  • zhanqunxitong
    泊君站群免费版源码下载,真正的站群系统,站群工具,站群软件,大家可以看看思路(The mooring the monarch station group free version of the source code download, the station group system, the tools of the station group, station group software, we can look at the idea of)
    2013-04-01 05:21:39下载
    积分:1
  • AUpdateProvider
    一个完善的升级程序,可供编写自动升级程序模块参考。(A complete update program solution.)
    2014-01-18 00:38:42下载
    积分:1
  • 696524资源总数
  • 103957会员总数
  • 51今日下载