-
account
设计一个名为Account类。这个类包含:
(1)一个名为id的int型数据域,表示账户的身份号(默认值为0)。
(2)一个名为balance的double型数据域,表示账户余额(默认值为0)。
(3)一个名为annualInterestRate的double型数据域,保存当前年利率(默认值为0)。
(4)一个无实参构造函数,创建一个默认账户。
(5)id、balance和annualInterestRate的访问器和更改器函数。
(6)一个名为getMonthlyInterestRate()的函数,返回月利率。
(7)一个名为withDraw的函数,从账户中支取指定金额。
(8)一个名为deposit的函数,向账户中存入指定金额。
画出类的UML图,实现类。编写一个测试程序,它创建一个Account对象,其ID为1122,账户余额为20000,年利率为4.5 。使用withDraw函数取出2500美元,使用deposit函数存入3000美元,然后输出账户余额、月利率和账户创建时间。(Design a class named Account. This class includes: (a) a named data type int id field that indicates the account identification number (default is 0). (2) a double-called balance of data fields, which means that the account balance (default is 0). (3) a double type named annualInterestRate of data fields, save the current interest rate (default is 0). (4) a no-argument constructor creates a default account. (5) id, balance and annualInterestRate access control and change control functions. (6) a named getMonthlyInterestRate () function returns a monthly rate. (7) a function named withDraw, drawn from the account specified amount. (8) a function called deposit to the account into a designated amount. Draw a UML class diagram, the implementation class. Write a test program that creates an Account object, its ID is 1122, the account balance is 20,000, an interest rate of 4.5 . Use withDraw function out $ 2,500, $ 3,000 deposit with deposit function, and then outputs the account balance, m)
- 2013-06-01 13:21:54下载
- 积分:1
-
使用Opencv读取16bitTIFF图像的函数
//这是一个使用Opencv读取16bitTIFF图像的函数,使用与已知宽高的图像//注意需要在函数外部为图像分配内存,使用完毕后记得释放内存//参数:imagePathName 待读入的影像路径名 __in__//参数:subImage 保存读入数据的数组 __out__//返回值:成功返回true,失败返回false/*unsigned short* subImage = new unsigned short[subWidth * subHeight];memset(subImage, 0, subWidth * subHeight);read16bitTiffOpencv("2084_00.tif", subImage);......delete[] subImage;*/
- 2022-06-14 09:08:36下载
- 积分:1
-
Text
实现VC++文本编程,适合初学者使用。。。。。(Implementation of VC++ text programming)
- 2018-05-13 21:15:01下载
- 积分:1
-
uip1.0源代码加中文手册
uip1.0源代码加中文手册。uIPuIPuIP设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要设计只实现了进行网络通信所需的 必要TCP/IPTCP/IPTCP/IPTCP/IPTCP/IPTCP/IP组件。提供基础的 组件。提供基础的 组件。提供基础的 组件。提供基础的 组件。提供基础的 组件。提供基础的 组件。提供基础的 UDP 服务,重点是 IP , ICMPICMPICMPICMP(ping)(ping)(ping)(ping)(ping)(ping), TCPTCPTCP服务。 服务。 服务。 uIPuIPuIP是用 C语言编写的。
许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 许多其他为小型系统设计的 TCP/IPTCP/IPTCP/IPTCP/IPTCP/IPTCP/IP实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和一个运行全尺寸 实现都假定嵌入式设备会和
- 2022-03-14 10:20:36下载
- 积分:1
-
HOG
基于HOG的行人检测,作者的源代码有错误,现代码已经进行了改变,并可以调试通(Histograms of Oriented Gradients for Human Detection, the writer s code has some errors, and I have correct the errors, and the code is right under C++ buidler)
- 2020-06-25 23:00:01下载
- 积分:1
-
qtester104-v1.04
c++与qt实现IEC 104通讯规约,LINUX与windows已测试通过(c++qt IEC 104 communication protocol, LINUX and windows have been tested)
- 2020-12-15 15:19:13下载
- 积分:1
-
DevComponents.DotNetBar2-14.0
DotNetBar是一款性价比很强的界面控件,带有56个Windows Form 控件的工具箱,使开发人员可以轻而易举地创建出专业美观的Windows Form应用程序用户界面,控件全部采用C#编写,引入了全部Office 2007 style Ribbon控件、Office 2003 office2010 样式、支持windows7,Windows XP主题等。(DotNetBar is a very cost-effective interface control, with 56 Windows Form controls toolbox, so that developers can easily create a professional and beautiful Windows Form application user interface, all the controls are written using C#, the introduction of all Office 2007 style Ribbon controls, Office 2003 Office2010 sample Type, support windows7, Windows XP theme and so on.)
- 2018-07-05 09:51:19下载
- 积分:1
-
无刷电机驱动
1、无刷电机驱动
2、tim1控制无刷电机
3、开关霍尔外中断获取转子位置信息
4、带有正反转
5、库函数完善代码
- 2023-04-26 20:45:03下载
- 积分:1
-
ascii转换工具
ASCII转换工具,ASCII转字符串,字符串转ASCII,ASCII之间添加分隔符
- 2023-05-28 02:35:04下载
- 积分:1
-
用stm8s103写的C代码
用stm8s103写的C代码,带AD,LED,中断。
- 2022-04-21 23:12:00下载
- 积分:1