-
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
-
将图片保存为AVI视频
将图片保存为AVI录相 -Save the picture as AVI video
- 2022-01-27 09:58:37下载
- 积分:1
-
send and receive data via com port application
send and receive data via com port application
- 2022-01-26 01:25:51下载
- 积分:1
-
control the content of text1 click automatic selection, it is convenient.
text1控件内容单击自动选择,很方便。-control the content of text1 click automatic selection, it is convenient.
- 2022-05-19 08:23:32下载
- 积分:1
-
MS (Microsoft Media Server protocol)协议概述:
用来访问并流式接收 Windows Media 服务器中 .asf 文...
MS (Microsoft Media Server protocol)协议概述:
用来访问并流式接收 Windows Media 服务器中 .asf 文件的一种协议。MMS 协议用于访问 Windows Media 发布点上的单播内容。MMS 是连接 Windows Media 单播服务的默认方法。若观众在 Windows Media -MS (Microsoft Media Server protocol) protocol Overview: used to access and receive streaming Windows Media server. Asf file an agreement. MMS protocol is used to access the Windows Media Release point unicast content. MMS is to connect Windows Media Unicast service of the default method. If the audience in Windows Media
- 2022-01-25 23:13:00下载
- 积分:1
-
一个WINDOWS消息的示例程序,相当有意思,仔细看看.
一个WINDOWS消息的示例程序,相当有意思,仔细看看.-a news WINDOWS examples of procedures, very interesting, and to look carefully.
- 2022-11-25 16:40:03下载
- 积分:1
-
有关树形控件的使用
有关树形控件的使用-controls on the use of tree
- 2022-01-28 11:14:33下载
- 积分:1
-
用vhdl语言描述时钟的功能,并通过七段译码输出。
用vhdl语言描述时钟的功能,并通过七段译码输出。-VHDL language used to describe the function of the clock and through the Seven-Segment decoder output.
- 2023-01-22 23:55:03下载
- 积分:1
-
vb programming, computer graphics
vb编程,计算机图形学-vb programming, computer graphics
- 2022-01-24 16:18:18下载
- 积分:1
-
使用宏汇编 ( MASM ) 写的一个计算器, 能进行 加 和 减 操作.
使用宏汇编 ( MASM ) 写的一个计算器, 能进行 加 和 减 操作.-Use Macro Assembler (MASM) write a calculator that can be " plus" and " cut" operations.
- 2022-01-26 07:09:51下载
- 积分:1