-
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
-
用的示例程序,画笔绘画应用程序
VC示例程序,画刷类的应用-VC sample program, the Brush painting application
- 2022-02-26 05:25:26下载
- 积分:1
-
基于c# wcf的酒店管理系统
本项目接近商业版的酒店管理系统,包含酒店管理,酒店预定,酒店消费,结账等所有传统功能,项目包含wcf框架的客户端和服务端,对c#wcf的初学者是不个相当不错的项目
- 2022-02-05 01:57:13下载
- 积分:1
-
很好的程序请使用
很好的程序请使用-good procedure to use
- 2022-04-02 08:21:50下载
- 积分:1
-
a DLL with MFC's date library
一个用MFC DLL开发的日期函数库-a DLL with MFC"s date library
- 2022-04-26 22:20:57下载
- 积分:1
-
MobileX 通过手机数据线连接手机,然后程序就可以控制手机短信收发和电话簿编辑,可以支持很多类型,但是要选对参数哦...
MobileX 通过手机数据线连接手机,然后程序就可以控制手机短信收发和电话簿编辑,可以支持很多类型,但是要选对参数哦-MobileX data through the phone line to phone, and then can control procedures SMS transceiver and telephone directory editor, can support many types, but the right to choose parameters oh
- 2022-03-05 20:09:29下载
- 积分:1
-
sock configuration learning
sock配置学习-sock configuration learning
- 2023-08-10 10:10:03下载
- 积分:1
-
判断操作系统版本,调用到注册表!
判断操作系统版本,调用到注册表!-judgment of the operating system version, called the registry!
- 2022-07-03 02:07:52下载
- 积分:1
-
VB中也有类似VC的IDE设置的预编译宏.与C++不同,VB代码中的预编译只能在当前文件中有效,但在IDE中设置的不受这个限制__郝玉杰...
VB中也有类似VC的IDE设置的预编译宏.与C++不同,VB代码中的预编译只能在当前文件中有效,但在IDE中设置的不受这个限制__郝玉杰-VB VC has a similar set of pre-IDE compiler Acer. C and different, VB code to the pre-compiled only in the current document effective, but in the IDE set against this limitation __ Haoyujie
- 2022-10-30 22:00:03下载
- 积分:1
-
嵌入式软件工程师必须掌握的基本功,与普通C编程的侧重点有很大的不同!...
嵌入式软件工程师必须掌握的基本功,与普通C编程的侧重点有很大的不同!-embedded software engineers must master the basic skills, and ordinary C programming focus is very different!
- 2023-04-24 18:35:03下载
- 积分:1