/** ************重载,重写(覆盖),隐藏的识别*************重载:如何调用取决于参数覆盖:如何调用取决于object(有virtual 同名 同参)隐藏:如何调用取决于pointera、编译时多态性:通过重载函数实现 b、运行时多态性:通过虚函数实现。包含纯虚函数(vir...
分类:
其他好文 时间:
2014-06-29 00:26:59
阅读次数:
199
如果本地有多个网卡(即多个ip),要指定本地发送网卡,则在建立的socket上bind所指定的网卡进行connect和send操作。例子程序如下:#include #include "WinSock2.h"#pragma comment(lib,"ws2_32.lib")SOCKET tcp_soc...
分类:
其他好文 时间:
2014-06-29 00:05:48
阅读次数:
943
相同函数名具有多态性:① 译时的多态(由函数名来调用时体现):重载:同类,不同参② 运行时的多态(用指向不同类的指针来调用):覆盖: 不同类,同参,基类有virtual(由指针的类型来决定,体现了多态性)隐藏:①不同类,同参,基类无virtual②不同类,不同参(不论有无virtual)(由指针来决...
分类:
其他好文 时间:
2014-06-28 22:55:22
阅读次数:
276
1.关于java语言的基本概念java,面向对象,跨平台,适合分布式计算,解释型语言,具有多线程处理能力和较高的安全性.JVM (java virtual machine) java虚拟机, 能够运行java bytecode的虚拟机,是java平台的一部分。JVM屏蔽来与具体os相关的信息,使得j...
分类:
编程语言 时间:
2014-06-21 10:26:05
阅读次数:
319
1,su - db2inst2,db2 connect to ids3,db2stop force4,db2 list db directory5,db2 list tables for all6,db2 describe table tablename7,db2 "restore db JVC f...
分类:
其他好文 时间:
2014-06-21 09:29:14
阅读次数:
247
三.虚析构#include using namespace std;class Base{public: virtual ~Base(){ cout<<"Base destructor\n"; }};class Derived:public Base{public: Derived(){...
分类:
其他好文 时间:
2014-06-21 08:53:46
阅读次数:
182
BACKGROUND OF THE INVENTIONA conventional virtual-machine monitor (VM monitor) typically runs on a computer and presents to other software the abstrac...
分类:
其他好文 时间:
2014-06-21 06:29:43
阅读次数:
181
BACKGROUND INFORMATIONAn embodiment of the present invention relates generally to virtualization platforms and, more specifically, to a system and met...
分类:
其他好文 时间:
2014-06-21 00:58:07
阅读次数:
297
BACKGROUNDComputer viruses are a common problem for computer users. One typical mode of attack is to send an electronic mail message (e-mail) containi...
分类:
其他好文 时间:
2014-06-21 00:51:41
阅读次数:
285
BACKGROUND OF THE INVENTIONA conventional virtual-machine monitor (VMM) typically runs on a computer and presents to other software the abstraction of...
分类:
数据库 时间:
2014-06-21 00:36:46
阅读次数:
377