搜索资源列表
BinaryTree
- 用template写的二叉排序异质树,并做了界面优化等辅助功能,应该很多同学都需要,基本上把c++的继承虚函数特性都用到了
9
- 多态性 声名一个学生类student,属性包括学号、姓名、性别、出生年月。由student类派生出大学生类和研究生类,大学生类的属性还包括班级、专业、系;研究生类的属性还包括研究方向、导师姓名。定义构造函数和析构函数以及数据成员的赋值和输出,在学生类中定义一虚函数(show())输出数据成员。 基本要求:实现动态调用派生类中相应函数; 高级要求:验证基类对象调用虚函数、指向基类对象的基类指针调用虚函数、派生类对象调用虚函数等情况。
TimerTest.rar
- 一个通用定时器类,可用于无窗口类中。本例程使用一个C++类,利用定时器变换指示灯。程序中用到:自定义的定时器类、C++多类继承、使用纯虚函数的中间类、指示灯变换设置。,A general-purpose timer class can be used for non-window class. The routine use of a C++ classes, the use of timer indicator transform. Programs used: a custom timer
xuhanshu
- 在linux文件系统下,实现虚函数,简单地说,那些被virtual关键字修饰的成员函数,就是虚函数。虚函数的作用,用专业术语来解释就是实现多态性(Polymorphism),多态性是将接口与实现进行分离;用形象的语言来解释就是实现以共同的方法,但因个体差异而采用不同的策略-In linux file system, the virtual function implementation, easy to say that those who have been modified by the k
zuhegezhongjishu
- 组合各种技术对虚函数,文件提取,系统日志记录等进行组合,从而实现啦更大的功能-Combination of various technologies on virtual function, file extraction, system log records, etc. combination to achieve greater functionality
xbwinapickdq
- 我有一个需求,是获取函数的机器码,但是我直接用函数的地址来读取却读不到,后来听说是虚函数地址-I have a demand function is to obtain the binary, but I directly address the function to read but can not read, and later heard that the virtual function address
sftdnld
- DLL如果这个类以前就有一个虚函数B,此时在它之前增加一个新的虚函数A。这样,我们改变了类的虚函数表。于是,表中的第一个函数指向了函数A
daililei
- 自定义代理类的实现 是想QItemDelegate的虚函数 可直接加入工程运用-Implementation of a custom proxy class is to QItemDelegate virtual function can be directly used to join project
shsdt
- 在VC2005中实现的。虚函数的多态源码,调式可以用。-Implemented in VC2005. Virtual function of the multi-state source, mode can be used.
VirtualFunction
- 控制台编程,实现虚函数功能的演示,对初学者理解面向对象编程很有好处-Console programming, a demonstration of virtual function function for beginners very good understanding of object-oriented programming
sh
- 2. 声明vehicle类,私有数据成员为 int MaxSpeed int Weight ,有public成员函数且为虚函数void run();void stop();bicycle 类motorcar类 均从vehicle类 虚拟派生得到。Motorcycle类从bicycle 类motorcar类公共派生得到。对虚函数调用,检测其晚期绑定。-2. Statement vehicle class, private data members int MaxSpeed int Weight
TestVirtual
- 查看面向对象多态执行流程,如果父类函数为纯虚函数,则会执行子类函数.-look at multy status in executing,if farther s function no execute health, execute child s function
VirtualFunction
- vc使用虚函数实现运行时多态\VirtualFunction-vc run time using virtual functions to achieve polymorphism \ VirtualFunction
OperatorDemo
- C++中,通过虚函数实现运行时多态的实例源码,很不错的vc源码,推荐!-In C++, virtual functions to achieve by running an instance of polymorphism source, very good vc source, recommended!
VirtualFunction
- 使用虚函数实现运行时多态\VirtualFunction\VirtualFunction.rar,很不错的vc源码,希望对大家有所帮助。-Use virtual functions to achieve run-time polymorphism \ VirtualFunction \ VirtualFunction.rar, very good vc source code, we want to help.
virtual-table
- 对虚函数表的一次深入的分析,还发现了一些不为认知的密秘密-virtual table
CPP-inheritance-and-polymorphism
- 详解C++中的继承,虚函数与多态,及其相对应的示例-Sep inheritance in c++, virtual function and polymorphism, and corresponding sample
Timer_Thread
- MFC中手动创建定时器、线程、消息传递、虚函数的使用,做的一个集成Demo-MFC, manually create a timer, thread, message passing, the use of virtual functions to do an integrated Demo
a.zip
- 用虚函数计算不同形状的图形的各项参数。除此之外,就没什么,Virtual function of the parameters of the different shapes graphics. In addition, nothing
yuangongxinchou
- 多态性是面向对象程序设计一个重要特征,本实验继续应用C++类的继承机制,同时要求应用C++类的动态多态性和运算符重载的知识,要求重点掌握虚函数(包括纯虚函数)的概念及其应用以及自定义类完成员工薪酬计算程序。中的运算符重载。-Polymorphism is an important object-oriented programming features, the experiment continue to apply C++ class inheritance mechanisms, bu