-
1、设计一个程序,其中有3个类,即CBank,BBank和GBank,分别为中国银行类、工商银行类和农业银行类。每个类都包含一个私有数据balance,用于存放...
1、设计一个程序,其中有3个类,即CBank,BBank和GBank,分别为中国银行类、工商银行类和农业银行类。每个类都包含一个私有数据balance,用于存放储户在该行的存款数,另有一个友元函数total用于计算储户在这3家银行中的总存款数。
2、设计一个程序,其中有2个类,Point类为点类,包含2个私有数据x和y,表示点的坐标,line类为直线类,包含3个私有数据a,b和c,表示直线方程ax+by+c=0。另有一个友元函数dist,用于计算一个点到直线的距离。点与直线之间的距离计算公式如下:(提示:本题为有元函数的应用)
-1, design a program, of which three categories, namely CBank, BBank and GBank, respectively, for the Chinese banking, business banking and agricultural banking. Each class contains a private data balance, used to store the bank deposits of savers in the number, while a friend function used to calculate the total depositors in the three the number of total deposits in banks. 2, design a program, of which there are 2 categories, Point class for the point class, including two individual and private data are x and y, that the coordinates of points, line for line class categories, with three individual and private data are a, b and c, that straight line equation ax+ by+ c = 0. There is also a friend function dist, used
- 2022-08-20 00:41:26下载
- 积分:1
-
designated certain procedures, delayed start. The main application of the system...
指定某个程序,延迟进行启动。主要应用在系统启动后,由于不是所有的硬件都正常工作时,启动这些程序时回出现错误。-designated certain procedures, delayed start. The main application of the system after commencement, because not all the hardware are normal working hours, when they start to make mistakes.
- 2022-02-20 23:19:44下载
- 积分:1
-
模拟指示灯控件。
模拟指示灯控件。-simulated light controls.
- 2022-01-31 06:53:05下载
- 积分:1
-
zieberbude POS for cyber cafe
zeiberbude是网吧的销售点系统。作为介绍,它是一个c++平台系统,可以在解压缩后使用。它有一个服务器和客户端,服务器是用户友好的,客户端可以在基于windows或linux的计算机上使用。这个系统已经在网吧中使用,它只需访问一个正在运行的网站http://www.zeibebu.de/
- 2022-05-16 04:25:00下载
- 积分:1
-
good things to share with everyone, I think is a good thing.
好东西大家一起分享,我觉得是很好的东西。-good things to share with everyone, I think is a good thing.
- 2022-01-29 01:02:27下载
- 积分:1
-
自己绘制窗口标题的类
自己绘制窗口标题的类-The class of drawing the title bar of my own
- 2022-05-14 10:06:24下载
- 积分:1
-
演示了随机数的产生和使用
演示了随机数的产生和使用-demonstration, the random number generation and use
- 2022-05-24 05:46:39下载
- 积分:1
-
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形...
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?回溯-Parts mutilation given width W of a rectangular plate, rectangular plate of height restrictions. Is the need to cut out from the board, respectively, n-height hi, a width of the rectangular parts wi. Parts of the rules of cutting height direction and the direction of rectangular plates with a high degree of consistency. Asked how to make the use of cutting rectangular plate height h the smallest? Back
- 2023-03-01 07:20:02下载
- 积分:1
-
一个用VC写的监控别人计算机的程序(65KB),
一个用VC写的监控别人计算机的程序(65KB),-Written by a VC with a computer program to monitor other people (65KB),
- 2022-01-29 04:01:26下载
- 积分:1
-
这是Wince.net 4.2下的以太网芯片(Lan91c111)的驱动源码。硬件平台为Intel strongARM SA...
这是Wince.net 4.2下的以太网芯片(Lan91c111)的驱动源码。硬件平台为Intel strongARM SA--4.2 Wince.net This is the Ethernet chip (Lan91c111) drive source. Hardware platforms for Intel strongARM SA-
- 2022-03-07 00:21:07下载
- 积分:1