代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/266192/11237205
java singletonpattern.java
//: singleton:SingletonPattern.java
// The Singleton design pattern: you can
// never instantiate more than one.
package singleton;
import junit.framework.*;
// Since this isn't inherited from
www.eeworm.com/read/249540/12489519
cpp main.cpp
/********************************************************************
created: 2006/07/20
filename: Main.cpp
author: 李创
http://www.cppblog.com/converse/
purpose: Singleton
www.eeworm.com/read/335542/12517765
cpp curioussingleton.cpp
//: C10:CuriousSingleton.cpp
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in t
www.eeworm.com/read/335542/12517785
cpp singletonpattern.cpp
//: C10:SingletonPattern.cpp
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in t
www.eeworm.com/read/335542/12517811
cpp singletonpattern2.cpp
//: C10:SingletonPattern2.cpp
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in
www.eeworm.com/read/147816/12519405
java singletontest.java
/*单例模式
*(1) 一个类只有一个实例,而且自行实例化并向整个系统提供这个实例,
* 这个类称为单例类。
*(2) 单例类的一个最重要的特点是类的构造方法是私有的,从页避免了外部
* 利用构造方法直接创建多个实例。
*/
/*
*在程序当中只提供一个实例时,
*可以使用单例模式 。。。。
*/
class <mark>Singleton</mark>
{
privat ...
www.eeworm.com/read/147597/12544468
java staticprint.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/147597/12544471
java staticspool.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/334860/12567738
m min.m
%列状数据最小值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% min(A)
%
%MIN Smallest component.
% For vectors, MIN(X) is the smallest element in X. For matrices,
% MIN(X) is a row vector contain
www.eeworm.com/read/334860/12568367
m max.m
%列状数据最大值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% max(A)
%
%MAX Largest component.
% For vectors, MAX(X) is the largest element in X. For matrices,
% MAX(X) is a row vector containin