-
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
-
piano learning process is a compilation of language was often asked to do a simp...
钢琴程序是一个学习汇编语言时常被要求去做的一个简单程序,也是我自己弄了一天才弄出来的,望君一看-piano learning process is a compilation of language was often asked to do a simple procedure, I get one day get out of a hope to see you
- 2022-02-10 02:10:03下载
- 积分:1
-
这是一个抢答器程序,各模块还需连接一下,已经调试成功
这是一个抢答器程序,各模块还需连接一下,已经调试成功-This is a Responder procedure, the modules need to connect what has been successful Debugging
- 2023-06-20 04:10:03下载
- 积分:1
-
do with Delphi database applications as simple Although there is no complete sof...
用Delphi做数据库应用就这么简单 虽然是个没有全部完成的软件,但数据库的插入、查找、更新等等有了,初学者可以看看,呵! 源代码中的打印及查询部分只是包括一些测试时使用的代码,我在了解如何实现打印及查询后就没有继续做下去。这两个部分可以根据不同的需求修改。-do with Delphi database applications as simple Although there is no complete software, but database insert, retrieve, update, etc. With that beginners can see, uh! The source code for the print and inquiries, including some part is the use of the test code, I understand how to achieve Print and inquiries had not continue to do so. These two parts can be based on different needs revision.
- 2022-09-02 19:10:03下载
- 积分:1
-
一个完整的婚沙管理系统
一个完整的婚沙管理系统-a complete marriage sand management system
- 2022-04-17 19:33:33下载
- 积分:1
-
快速傅里叶变换(FFT)算法C++实现代码
快速傅里叶变换(FFT)算法C++实现代码
-Fast Fourier Transform (FFT) algorithms to achieve C code
- 2023-07-25 14:50:03下载
- 积分:1
-
C++编写的一个ATM取款系统 C++编写的一个ATM取款系统
C++编写的一个ATM取款系统 C++编写的一个ATM取款系统-C++ written in an ATM withdrawal system written in C++ system, an ATM withdrawal written in C++ system, an ATM withdrawal
- 2023-07-14 02:10:03下载
- 积分:1
-
One on the patch of the source code shows how to process large patch
一个关于补丁程序的源代码,展示了如何给程序大补丁-One on the patch of the source code shows how to process large patch
- 2023-01-30 01:35:04下载
- 积分:1
-
封装好的串口操作类,简单好用,功能强大。工业应用。
封装好的串口操作类,简单好用,功能强大。工业应用。-Packaging good serial-type operation, easy-to-use and powerful. Industrial applications.
- 2022-02-21 21:41:56下载
- 积分:1
-
HEX
HEX-VIEW是一个十六进制察看/编辑程序,虽然还不完善,但毕竟是一个可以运行的版本了,编写这个程序的目的是想深度探索处理过程。程序界面显示文件的每一个十六进制,ascii码,二进制和十进制字节。十六进制地显示在左侧,分十八列,对应的ascii码值显示在右侧。二进制和十进制值地显示可选。本程序用turbo c++3.1开发。用其它与dos兼容的编译器应该可以编译,但没有测试过。-HEX-VIEW is a hexadecimal probation/editor, while not perfect, but that is a running version, the preparation of this procedure is designed to explore the depth process. Program Interface documents show a 16 per band, ascii code, binary and decimal bytes. Hexadecimal displayed on the left side, 18 minutes, the corresponding code ascii value shown on the right. The binary and decimal value shows optional. The procedures used turbo c 3.1 development. In other dos compatible with the compiler can be compiled, but not tested.
- 2022-05-29 10:48:14下载
- 积分:1