代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/253260/12235367
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/337096/12391612
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/337096/12391648
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/337096/12391662
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/234256/14117700
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/229298/14346350
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/122684/14674767
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/213938/15122036
h mydate.h
// mytime1.h -- Time class after operator overloading
#ifndef MYDATE1_H_
#define MYDATE1_H_
#include
using namespace std;
//类的构造部分
class Date
{
private:
int year;
int mo
www.eeworm.com/read/162614/5522300
c overload.c
// { dg-do assemble }
// GROUPS passed overloading
enum bar {};
void operator+ (int, int);// { dg-error "" } .*
void operator+ (bar&, int);
template void operator+ (int b, T& t) { return
www.eeworm.com/read/162614/5522521
c tempover.c
// { dg-do assemble }
// GROUPS passed templates overloading
#define TEMPL template
class B {};
TEMPL class A : virtual public B {
public:
A(int);
};
TEMPL A::A(int){}
A