登录
首页 » Windows开发 » 1、设计一个程序,其中有3个类,即CBank,BBank和GBank,分别为中国银行类、工商银行类和农业银行类。每个类都包含一个私有数据balance,用于存放...

1、设计一个程序,其中有3个类,即CBank,BBank和GBank,分别为中国银行类、工商银行类和农业银行类。每个类都包含一个私有数据balance,用于存放...

于 2022-08-20 发布 文件大小:1.12 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 中国象棋的声音代码,对学习的有用。
    一个中国象棋的源代码,可以供学习VC的人用。-chinese chess sound code .it is useful for vc study.
    2022-06-27 22:53:21下载
    积分:1
  • VB6 到 VB。Net 转换 实例
    VB6 到 VB。Net 转换 实例-VB6 to VB. Net conversion examples
    2022-05-24 06:39:31下载
    积分:1
  • 初学者的用户管理系统试做
    课堂练习做  界面由jsp+html实现  数据库为mysql  java8
    2022-06-19 02:09:30下载
    积分:1
  • JavaScript主要是针对客服端编程,但是,这个说法是不对的。JavaScript是一门独立的语言,像C一样可以做任何事;但是,我这用JavaScript做...
    JavaScript主要是针对客服端编程,但是,这个说法是不对的。JavaScript是一门独立的语言,像C一样可以做任何事;但是,我这用JavaScript做客户端辅佐功能。-JavaScript is mainly aimed at customer-side programming, but this view is wrong. JavaScript is a separate language, like C can still do anything however, I have to use JavaScript to do client-side adjuvant function.
    2023-08-23 02:55:04下载
    积分:1
  • 3D 魔方的C++
    新增功能:花式魔方,在菜单中FigureCube可以使魔方旋转成多种花式。共有45中花式,参考了www.Rubiker.cn中的花式魔方公式。每点击一次菜单,就会显示一种花式,45中花式循环显示。由于可能在整理时把花式公式弄错,所以可能出现并不美观的图案,这些会在可能存在的后续版本中更正。 1 > 尚未实现类似于2D版本的抄写功能。可以在2D中抄写,然后在本版本中打开。
    2022-04-22 11:08:30下载
    积分:1
  • 程序图标集(.ICO)
    程序图标集(.ICO)-icons set (. ICO)
    2022-01-26 02:54:58下载
    积分:1
  • VB制作的简单文件搜索器
    VB制作的简单文件搜索器,因水平有限,急需完善。。。。。VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Begin VB.Form FrmMain BorderStyle = 1 "Fixed Single Caption = "文件搜索器" ClientHeight = 1590 ClientLeft = 45 ClientTop = 390 ClientWidth = 3990 Icon = "FrmMain.frx":0000 LinkTopic = "Form1" MaxButton = 0 "False ScaleHeight = 1590 ScaleWidth = 3990 StartUpPosition = 3 "窗口缺省 Begin VB.CommandButton Command3 Caption = "清除信息" Height = 300 Left = 1560 TabIndex = 5 Top = 1155 Width = 1575 End Begin MSComDlg.CommonDialog CommonDialog1 L
    2023-07-12 05:45:03下载
    积分:1
  • openssl生成证书,数字签名,加密解码
    资源描述 利用openssl 生成根证书,证书发布,数字签名。 握手建立会话长连接,发送,接收数据,最后销毁会话。
    2022-02-20 23:39:01下载
    积分:1
  • windows下自动靠边的窗口(带讲解)
    windows下自动靠边的窗口(带讲解)-windows automatically sides of the window (on the band)
    2022-03-04 07:48:22下载
    积分:1
  • 4X6=24游戏软件
    这是一款本人开发的游戏软件,每次给出4个数,通过加、减、乘除的计算组合,每一个数字智能使用一次,组合计算出24的结果,是一个智力游戏,系统会提供答案。
    2022-09-24 13:15:02下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载