代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/443900/7620788
cpp 5.12-重栽构造函数.cpp
// Listing 10.3
// Overloading constructors
#include
class Rectangle
{
public:
Rectangle();
Rectangle(int width, int length);
~Rectangle() {}
int GetWidth() const { retur
www.eeworm.com/read/435150/7796234
cpp main.cpp
// Exercise 14.5 Overloading the function call operator in the MyString class.
// One more prototype is added to the MyString class declaration
// declaring the function call operator function.
#
www.eeworm.com/read/331439/12828902
m angle.m
function theta = angle(q, a)
% ANGLE or phase of quaternion.
% (Quaternion overloading of standard Matlab function.)
%
% The second parameter is optional. If omitted, the result will always be
% in th
www.eeworm.com/read/116971/6112117
java collectionclassifier.java
// Broken - incorrect use of overloading! - Page 128
import java.util.*;
public class CollectionClassifier {
public static String classify(Set s) {
return "Set";
}
publ
www.eeworm.com/read/155858/11842919
cpp 4elist1204.cpp
//Listing 12.4 Overloading constructors in derived classes
#include
using namespace std;
enum BREED { GOLDEN, CAIRN, DANDIE, SHETLAND, DOBERMAN, LAB };
class Mammal
{
public:
www.eeworm.com/read/253866/12181285
cpp list1204.cpp
//Listing 12.4 Overloading constructors in derived classes
#include
using namespace std;
enum BREED { GOLDEN, CAIRN, DANDIE, SHETLAND, DOBERMAN, LAB };
class Mammal
{
public:
www.eeworm.com/read/220439/14800785
cpp triple.cpp
// Triple
// Demonstrates function overloading
#include
#include
using namespace std;
int triple(int number);
string triple(string text);
int main()
{
cout
www.eeworm.com/read/120429/14803776
java collectionclassifier.java
// Broken - incorrect use of overloading! - Page 128
import java.util.*;
public class CollectionClassifier {
public static String classify(Set s) {
return "Set";
}
publ
www.eeworm.com/read/207217/15279385
cpp main.cpp
// Exercise 14.5 Overloading the function call operator in the MyString class.
// One more prototype is added to the MyString class declaration
// declaring the function call operator function.
#