代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/435150/7796502
cpp prog9_01b.cpp
// Program 9.1b Overloading a function - removing ambiguity with a cast
#include
using std::cout;
using std::endl;
// Prototypes for two different functions
double larger(double a,
www.eeworm.com/read/435150/7796504
cpp prog9_01a.cpp
// Program 9.1a Overloading a function - ambiguous function call
#include
using std::cout;
using std::endl;
// Prototypes for two different functions
double larger(double a, double
www.eeworm.com/read/197407/7997478
h curr3.h
// includes >>, -, /, *, %
// and overloading of =
#ifndef Currency_
#define Currency_
#include
#include
enum sign {plus, minus};
class Currency {
friend i
www.eeworm.com/read/331439/12828641
m fprintf.m
function count = fprintf(FID, format, A)
% FPRINTF Write formatted data to file.
% (Quaternion overloading of standard Matlab function.)
%
% Only one quaternion argument is permitted, unlike the stand
www.eeworm.com/read/319883/13440469
cpp prog9_01b.cpp
// Program 9.1b Overloading a function - removing ambiguity with a cast
#include
using std::cout;
using std::endl;
// Prototypes for two different functions
double larger(double a,
www.eeworm.com/read/319883/13440471
cpp prog9_01a.cpp
// Program 9.1a Overloading a function - ambiguous function call
#include
using std::cout;
using std::endl;
// Prototypes for two different functions
double larger(double a, double
www.eeworm.com/read/240162/4582260
c overload9.c
// { dg-do assemble }
// GROUPS passed overloading
class CLogger
{
public:
void operator() (int,const char *) {}; // { dg-error "" } candidates
void operator() (int,const char *, ...) {};
www.eeworm.com/read/240162/4582950
c warning3.c
// { dg-do assemble }
// { dg-options "-Wshadow" }
// Bug: overloading of 'A' for template causes bogus shadowing warnings.
template
class A
{
public:
virtual ~A() {}
};
template clas
www.eeworm.com/read/233448/4675076
c overload9.c
// { dg-do assemble }
// GROUPS passed overloading
class CLogger
{
public:
void operator() (int,const char *) {}; // { dg-error "" } candidates
void operator() (int,const char *, ...) {};
www.eeworm.com/read/233448/4675769
c warning3.c
// { dg-do assemble }
// { dg-options "-Wshadow" }
// Bug: overloading of 'A' for template causes bogus shadowing warnings.
template
class A
{
public:
virtual ~A() {}
};
template clas