CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - create object
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Compress-Decompress algrithms
STL
Data structs
Algorithm
AI-NN-PR
matlab
Bio-Recognize
Crypt_Decrypt algrithms
mathematica
Maple
DataMining
Big Data
comsol
physical calculation
chemical calculation
simulation modeling
Search - create object - List
[
Data structs
]
cclassshape
DL : 0
声明一个基类Shape(点), 在此基础上派生出Rectangle(长方形)和Circle(圆),这三个类都有GetArea()函数计算对象的面积,构造函数,析构函数等有关函数。再使用Rectangle类创建一个派生类Square(正方形)。并设计创建各种类的对象,调用所有函数。设计函数f(Shape &a)能对不同对象的实参调用计算打印出对象的面积。 -statement a base class Shape (points) On this basis-- for Rectangle (rectangular) and Circle (Yuen), This category has three GetArea () function calculation of the area of the object, Constructors and destructor function and other functions. Rectangle re-use categories to create a derived class Square (square). Design and creation of all the different types of targets, calling all functions. Design function f (Shape
Date
: 2026-01-10
Size
: 4kb
User
:
gongwen
[
Data structs
]
AbstractFactory
DL : 0
C++的一种设计模式,创建对象的工厂方法的抽象基类,压缩包里还有采用doxygen和Graphviz得到的类开发文档-C++ A design pattern, factory method to create object of abstract base class, compression bag, there will be doxygen and Graphviz class development documents
Date
: 2026-01-10
Size
: 174kb
User
:
[
Data structs
]
ArrayList
DL : 0
C# ArrayList C++模仿版,只支持最简单的动态队列操作,采用双层链表,支持16兆以上个对象的队列管理。 效率:查找上界O(988+N/976144),插入及删除上界O(988+N/976144+N*T(create/delete-C# ArrayList C++ Imitation version, only support the simplest dynamic queue operations, the use of double-linked list, support for more than 16 trillion of the queue management object. Efficiency: Find the upper bound of O (988+ N/976144), insert and delete the upper bound of O (988+ N/976144+ N* T (create/delete
Date
: 2026-01-10
Size
: 44kb
User
:
李金鑫
[
Data structs
]
EXTENDS
DL : 0
C++入门实例,对继承与组合的初步应用。可以让用户选择在指定位置打印出不同的图形,如正立等腰三角形,倒立等腰三角形,矩形,正方形、菱形和多边形。图形由随机选择的*或者#组成。 请为每种图形设计一个类,这些类之间的关系可能是继承或者组合。 每个类需要能保存该图形对象的参数,改变参数的方法以及在屏幕上用字符打印该图形的方法。 程序根据用户的选择产生一个新图形的对象,为该对象设置参数并打印。 -C++ Getting Started example, inheritance and composition of the initial application. Allows users to choose to print a different location in the specified graphics, such as the isosceles triangle is established, inverted isosceles triangle, rectangle, square, diamond and polygon. Graphics by the random selection of* or# form. Please design a class for each graph, the relationship between these classes may be inherited or a combination. Each class needs to save the graphic object parameter, change the parameters of the method and the use of characters on the screen to print the graphic method. selection process based on user create a new graphic object, set the parameters for the object and print.
Date
: 2026-01-10
Size
: 5kb
User
:
周子
[
Data structs
]
CPP
DL : 0
1.编写一个类,声明一个数据成员和一个静态数据成员,其构造函数初始化数据成员,并把静态数据成员加1,其析构函数把静态数据成员减1。 (1) 编写一个应用程序,创建该类的3个对象,然后显示其数据成员和静态数据成员,再析构每个对象,并显示它们对静态数据成员的影响。 (2) 修改该类,增加静态成员函数并访问静态数据成员,并声明静态数据成员为保护成员。体会静态成员函数的使用,静态成员之间与非静态成员之间互访问题。 -1 write a class, declare a data member, and a static data member, its constructor initializes data members, and to add a static data member, its destructor decrements the static data member. (1) preparation of an application, create a class of three objects, then displays its data members and static data members, then each object destructor, and shows their impact on the static data member. (2) to modify the class, add a static member functions and access static data members and static data members declared as protected members. Understand the use of static member functions, static members and non-static members of the exchange of visits between the problem
Date
: 2026-01-10
Size
: 3kb
User
:
wei
[
Data structs
]
sorts
DL : 0
插入、合并、快速、冒泡、桶排序性能分析 标准C++代码,运用面向对象的设计理念,整体结构紧凑富有逻辑性 具体算法参照《算法导论》第四版 vs2010下可以正常运行 其他环境下,请自行建立工程,并拷贝sorts目录下sorts.cpp CalTime.h CalTime.cpp的内容 -Insert, merge, quick, bubble, bucket sort performance analysis Standard C code, the use of object-oriented design, the overall logical structure of compact Specific algorithm reference "Introduction to Algorithms," Fourth Edition can run under vs2010 Other circumstances, please create your own projects, and copy the sorts directory contents sorts.cpp CalTime.h CalTime.cpp
Date
: 2026-01-10
Size
: 3.48mb
User
:
Beef
[
Data structs
]
Account
DL : 0
一、实验名称:银行账户模拟 二、实验目的:这道题的主要目的是加深同学们对于面对对象编程中继承理解 三、实验内容: 创建一个银行账户的继承层次,表示银行的所有客户。所有的客户都能在他们的银行账户中存钱、取钱。任务主要如下: (1)创建Account类,作为基类。Account类应该包含帐户余额,并提供构造函数;向账户中余额加钱的方法;减少账户中余额的方法;获取当前帐户余额的方法。 (2)创建Account类的派生类:储蓄账户SavingAccount类,除去基类Account的所有功能外,储蓄账户还应该具有新的特性。储蓄帐户应该提供一个计算利息的成员函数和将利息加到帐户余额上的操作。 (3)创建Account类的派生类:支票帐户CheckingAccount类,与储蓄账户不同的是,它没有利率的计算,但是它会在每笔交易后收取一定的交易费用。它需要重新定义基类Account中的成员函数,当每笔交易完成时,在帐户余额中减去交易金额。 (4)在提供上述方法时有出错情况的处理,比如帐户余额不足等情况。-First, the experiment name: Bank Account Demo Second, the purpose of the experiment: The main purpose of this question is to deepen the students to understand object-oriented programming, inheritance III Experiment: Create a hierarchy of bank accounts, indicating that all bank customers. All the customers can save money in their bank accounts, withdraw money. The main tasks are as follows: (1) Create Account class as a base class. Account class should contain account balances, and provide a constructor add money to the account balance method method of reducing the account balance acquisition method of the current account balance. (2) create a derived class Account class: savings account SavingAccount class, remove all the functionality of the base class Account, the savings account should also have new features. Savings account should provide a calculation of interest and the interest of the member function is added to the operating account balance on. (3) create a derived class Acc
Date
: 2026-01-10
Size
: 229kb
User
:
刘微笑
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.