代码搜索:Capacity
找到约 2,190 项符合「Capacity」的源代码
代码结果 2,190
www.eeworm.com/read/141545/13002770
cpp vector2.cpp
#ifdef __BCPLUSPLUS__
#include
#include
#else
#include
#include
#endif
using namespace std;
typedef vector INTVECTOR;
void main(void)
{
www.eeworm.com/read/141335/13021100
java arraystack.java
interface Stack
{
public int size();
public boolean isEmpty();
public Object top() throws StackEmptyException;
public Object push (Object element);
public Object pop() throws StackEmptyExce
www.eeworm.com/read/241438/13144531
h stack.h
#ifndef STACK
#define STACK
template
class Stack
{
public:
Stack(int n=10)
{
top=-1;
setCapacity(n);
pool=new T[capacity];
}
~Stack()
{
if(pool!=0)
de
www.eeworm.com/read/240900/13188573
java stringbuffertest.java
class stringBufferTest {
public static void main(String args[]) {
StringBuffer sb= new StringBuffer("the fat cat");
int len = sb.length();
int sum = sb. capacity ();
System.out. println ("len
www.eeworm.com/read/325143/13224333
java usestringbuffer.java
public class UseStringBuffer {
public static void main(String[] args) {
StringBuffer sentence = new StringBuffer(20);
System.out.println("\nStringBuffer object capacity is "+ sentence.c
www.eeworm.com/read/325129/13225896
txt 动态规划求01背包问题.txt
#include
#include
#include
//goods是一个或多个物品的重量和价值
typedef struct goods
{
int weight;
int value;
} goods;
//用来定义一个queryList数组
//数组中的每个元素定义一趟需要记录的数
www.eeworm.com/read/324151/13282903
cs connectionpool.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data.Sql;
using System.Data.SqlClient;
namespace MsgSystem
{
public class
www.eeworm.com/read/323950/13306810
m ip_08_03.m
% MATLAB script for Illustrative Problem 8.3.
echo on
a_db=[-20:0.2:20];
a=10.^(a_db/10);
for i=1:201
f(i)=quad('il3_8fun',a(i)-5,a(i)+5,1e-3,[],a(i));
g(i)=quad('il3_8fun',-a(i)-5,-a(i)+5,1
www.eeworm.com/read/323353/13343222
java strarray.java
/**
*
*/
package problem8_3;
import java.util.ArrayList;
/**
* @author Administrator
*
*/
public class StrArray {
// size和stringArray不写修饰符是为了方便同一包中的非子类Consumer和Producer的对象访问
// in
www.eeworm.com/read/136879/13355928
cpp fig19_05.cpp
// Fig. 19.5: fig19_05.cpp
// Demonstrating functions related to size and capacity
#include
#include
using namespace std;
void printStats( const string & );
int main()
{