代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/388617/8595155
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/388617/8596212
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/388617/8596257
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/388617/8596273
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/432289/8613640
cpp opconv.cpp
//: C12:Opconv.cpp
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Op overloading conversion
class Three {
www.eeworm.com/read/287770/8670288
m eq.m
function c=eq(a,b)
% overloading of operator ==
% $Id: eq.m 31 2004-07-28 10:46:46Z mairas $
if ~(isa(a,'frequency') & isa(b,'frequency'))
error('Both operands must be frequency objects');
end
t
www.eeworm.com/read/287770/8670368
m eq.m
function c=eq(a,b)
% overloading of operator ==
% $Id: eq.m 31 2004-07-28 10:46:46Z mairas $
if ~(isa(a,'spectrum') & isa(b,'spectrum'))
error('Both operands must be spectrum objects');
end
try
www.eeworm.com/read/287770/8670420
m eq.m
function c=eq(a,b)
% overloading of operator ==
% $Id: eq.m 47 2004-09-09 08:01:57Z mairas $
if ~(isa(a,'time') & isa(b,'time'))
error('Both operands must be time objects');
end
try
c = (a.beg
www.eeworm.com/read/287770/8670715
m eq.m
function c=eq(a,b)
% overloading of operator ==
% $Id: eq.m 31 2004-07-28 10:46:46Z mairas $
if ~(isa(a,'signal') & isa(b,'signal'))
error('Both operands must be signal objects');
end
try
c =
www.eeworm.com/read/285874/8806127
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 '