-
编写一模拟股票交易的程序,该程序有以下几个功能:
1. 委托申请:
输入:每个委托包括四个数据项,股票编码( 4 位数字)、价格(浮点数...
编写一模拟股票交易的程序,该程序有以下几个功能:
1. 委托申请:
输入:每个委托包括四个数据项,股票编码( 4 位数字)、价格(浮点数)、数量(整数)、买 / 卖( B/S )
输出: a. 程序为每个委托产生一个唯一的序号( 04d ),该序号从 1 开始; b. 每笔成交包括:成交价格( 6.1f )、成交量( 4d )、买委托序号( 04d )、卖委托序号( 04d )。
2. 查询未成交的委托:
输入:股票编码
输出:按撮合队列中委托的顺序,分别输出该股票未成交的委托,每个输出的委托包括:委托序号( 04d )、 股票编码 ( 04d ) 、 价格( 6.1f )、数量( 4d )、 B/S (买 / 卖 )
3. 委托撤消:
输入:要撤消的委托号。
输出:若成功,显示该委托信息,其中委托包括数据项:委托序号、股票编码、价格、数量、 B/S (买 / 卖 ) ;否则显示“ not found ”失败信息。
委托输入格式 : 1 股票编码 价格 数量 买卖
查询输入格式 : 2 股票编码
委托撤销 : .3 委托号
退出: 0
如:
1 0038 20 1000 b
orderid: 0001
1 0278 18 2000 s
orderid: 0002
1 0003 8 5000 b
orderid: 0003 -编写一模拟股票交易的程序,该程序有以下几个功能:
1. 委托申请:
输入:每个委托包括四个数据项,股票编码( 4 位数字)、价格(浮点数)、数量(整数)、买/卖( B/S )
输出: a. 程序为每个委托产生一个唯一的序号( 04d ),该序号从 1 开始; b. 每笔成交包括:成交价格( 6.1f )、成交量( 4d )、买委托序号( 04d )、卖委托序号( 04d )。
2. 查询未成交的委托:
输入:股票编码
输出:按撮合队列中委托的顺序,分别输出该股票未成交的委托,每个输出的委托包括:委托序号( 04d )、 股票编码 ( 04d ) 、 价格( 6.1f )、数量( 4d )、 B/S (买/卖 )
- 2022-03-16 00:17:05下载
- 积分:1
-
一个很不错的酒店管理系统,使用vs2005,C#,结合ExtJs,数据库用mssql2000.界面美观。...
一个很不错的酒店管理系统,使用vs2005,C#,结合ExtJs,数据库用mssql2000.界面美观。-A very good hotel management system, using vs2005, C#, combined with ExtJs, a database with mssql2000. Interface aesthetics.
- 2022-01-28 07:21:14下载
- 积分:1
-
ppt 软件工程 好好用吧 很好用的 呵呵 下载吧
ppt 软件工程 好好用吧 很好用的 呵呵 下载吧-ppt for se it is useful
please download it
- 2022-12-24 13:55:03下载
- 积分:1
-
CUPON财政
科迪戈·方特;
- 2022-08-23 01:59:34下载
- 积分:1
-
The authors show to identify, design, implement, test, and refactor use
The authors show to identify, design, implement, test, and refactor use-case modules, as well as extend them. They also demonstrate how to design use-case modules with the Unified Modeling Language (UML)emphasizing enhancements made in UML 2.0and how to achieve use-case modularity using aspect technologies, notably AspectJ.
Key topics include
Making the case for use cases and aspects
Capturing and modeling concerns with use cases
Keeping concerns separate with use-case modules
Modeling use-cases slices and aspects using the newest extensions to the UML notation
Applying use cases and aspects in projects
- 2022-01-21 17:48:15下载
- 积分:1
-
密码学的PPT,里面详细介绍了DES算法,以及各种替代…
密码ppt,里面详细介绍了DES算法,以及各种替换墨盒的数据。
- 2022-08-05 16:40:37下载
- 积分:1
-
Server side Programming, it is the good document
Server side Programming, it is the good document
- 2022-01-25 18:36:00下载
- 积分:1
-
公积金监管系统Com中间件,是新疆公积金监管系统的客户端软件,采用了webservice+Dcom...
公积金监管系统Com中间件,是新疆公积金监管系统的客户端软件,采用了webservice+Dcom-provident fund monitoring system Com middleware, Xinjiang provident fund monitoring system client software, using a webservice Dcom
- 2023-03-24 00:00:04下载
- 积分:1
-
这个文件是在Keil编译器更详细的,在下的普通…
本文档有更详尽的在keil下编译器下常见都出错与解决方法。-This document is more detailed in the keil compiler, under both under the common mistakes and solutions.
- 2022-01-26 05:56:50下载
- 积分:1
-
- 2023-09-03 20:35:04下载
- 积分:1