代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/355030/10300260
cpp opconv.cpp
//: C12:Opconv.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Op overloading conversion
clas
www.eeworm.com/read/279032/10479170
htm mopersc.htm
More Effective C++ | Operators Back to Item 4: Avoid gratuitous default constructors
Continue to Item 5: Be wary of user-defined conversion functions
Operators
Overloadable operators you gotta love '
www.eeworm.com/read/278058/10577492
h mytime1.h
// mytime1.h -- Time class before operator overloading
#ifndef MYTIME1_H_
#define MYTIME1_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/278058/10577529
h mytime2.h
// mytime2.h -- Time class after operator overloading
#ifndef MYTIME2_H_
#define MYTIME2_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/278058/10577553
h mytime0.h
// mytime0.h -- Time class before operator overloading
#ifndef MYTIME0_H_
#define MYTIME0_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/273188/10923582
txt 新建 文本文档 (3).txt
java面试题集
关键词: java
第一,谈谈final, finally, finalize的区别。
final 用于声明属性,方法和类,分别表示属性不可变,方法不可覆盖,类不可继承。finally是异常处理语句结构的一部分,表示总是执行。finalize是Object类的一个方法,在垃圾收集器
www.eeworm.com/read/271450/10994237
cpp opconv.cpp
//: C12:Opconv.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Op overloading conversion
www.eeworm.com/read/470795/6908387
cpp program_6_12.cpp
// program 6.12: Function overloading
#include
using namespace std;
void Swap(int &x, int &y) {
int tmp = x;
x = y;
y = tmp;
}
void Swap(double &x, double &y) {
dou
www.eeworm.com/read/470800/6908524
h mytime1.h
// mytime1.h -- Time class before operator overloading
#ifndef MYTIME1_H_
#define MYTIME1_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/470800/6908536
h mytime2.h
// mytime2.h -- Time class after operator overloading
#ifndef MYTIME2_H_
#define MYTIME2_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m