代码搜索:methods
找到约 10,000 项符合「methods」的源代码
代码结果 10,000
www.eeworm.com/read/155858/11842969
cpp 4elist1206.cpp
//Listing 12.6 Hiding methods
#include
class Mammal
{
public:
void Move() const { std::cout
www.eeworm.com/read/344896/11853237
cpp stonewt.cpp
// stonewt.cpp -- Stonewt methods
#include
using namespace std;
#include "stonewt.h"
// construct Stonewt object from double value
Stonewt::Stonewt(double lbs)
{
stone = int (l
www.eeworm.com/read/344239/11895059
java ozwitch.java
//: enumerated/OzWitch.java
// The witches in the land of Oz.
import static net.mindview.util.Print.*;
public enum OzWitch {
// Instances must be defined first, before methods:
WEST("Miss G
www.eeworm.com/read/344239/11895351
java passobject.java
//: operators/PassObject.java
// Passing objects to methods may not be
// what you're used to.
import static net.mindview.util.Print.*;
class Letter {
char c;
}
public class PassObject {
www.eeworm.com/read/344239/11895975
java testproperty.java
//: net/mindview/atunit/TestProperty.java
// The @Unit @TestProperty tag.
package net.mindview.atunit;
import java.lang.annotation.*;
// Both fields and methods may be tagged as properties:
@Ta
www.eeworm.com/read/344238/11897607
java ex23.java
// innerclasses/Ex23.java
// TIJ4 Chapter Innerclasses, Exercise 23, page 371
/* Create an interface U with three methods. Create a class A with a method that
* produces a reference to a U by build
www.eeworm.com/read/344238/11898006
java passingthisex.java
// initialization/PassingThisEx.java
// TIJ4 Chapter Initialization, Exercise 8, page 170
/* Create a class with two methods. Within the first method, call the
* second method twice: the first time
www.eeworm.com/read/344238/11898013
java dogtalk2.java
// initialization/DogTalk2.java
// TIJ4 Chapter Initialization, Exercise 6, page 167
/* Modify the previous exercise so that two of the overloaded methods have two
* arguments (of two different typ
www.eeworm.com/read/154122/11988707
m svkernel.m
function k = svkernel(ker,u,v)
%SVKERNEL kernel for Support Vector Methods
%
% Usage: k = svkernel(ker,u,v)
%
% Parameters: ker - kernel type
% u,v - kernel arguments
%
% Values for ke
www.eeworm.com/read/254907/12113880
java chararray.java
// CharArray.java
// Provides methods for manipulating an array of characters.
import java.util.*;
public class CharArray
{
public static final int MAXLENGTH = 512;
public char[] chars = new ch