代码搜索:Capacity
找到约 2,190 项符合「Capacity」的源代码
代码结果 2,190
www.eeworm.com/read/159520/10644125
java ch9ex5.java
class CounterException extends Exception{
String message;
public CounterException(String m){
message=m;
}
public String getMessage(){
return message;
}
}
class Counter{
private int
www.eeworm.com/read/159520/10644130
java ch9ex2.java
class Counter{
private int count;
public Counter(){
count=0;
}
public void incCount(){
count++;
}
public void decCount(){
if(count>0)
count--;
}
public int getCount(){
www.eeworm.com/read/159519/10644290
java ch6ex19.java
public class ch6ex19{
public static void main(String[] args) {
String s1="Computer";
String s = "My "+s1+" course is "+Integer.toString(87);
System.out.println(s);
// The "equiv
www.eeworm.com/read/350642/10722298
cpp vector2.cpp
#ifdef __BCPLUSPLUS__
#include
#include
#else
#include
#include
#endif
using namespace std;
typedef vector INTVECTOR;
void main(void)
{
www.eeworm.com/read/276301/10750439
java vectordemo.java
import java.util.*;
class VectorDemo
{
public static void main(String[] args)
{
Vector v=new Vector();
for(int i=0;i
www.eeworm.com/read/276301/10750776
java stringbuffertest.java
import java.io.*;
public class StringBufferTest
{
public static void main(String args[])
{
StringBuffer s=new StringBuffer("hello");
System.out.println("改变前:s="+s);
s.reverse();
Syst
www.eeworm.com/read/275729/10798574
cxx pobjlist.cxx
/*
*
* C++ Portable Types Library (PTypes)
* Version 1.7.5 Released 9-Mar-2003
*
* Copyright (c) 2001, 2002, 2003 Hovik Melikyan
*
* http://www.melikyan.com/ptypes/
* http://ptypes.sour
www.eeworm.com/read/420332/10802896
java testvector.java
import java.util.Vector;
public class TestVector{
public static void main(String args[]){
Vector v1 = new Vector();
Vector v2 = new Vector(20);
Vector v3 = new Vector(
www.eeworm.com/read/419693/10844792
h arraystack.h
// array implementation of a stack
// derives from the ADT stack
#ifndef arrayStack_
#define arrayStack_
#include "stack.h"
#include "myExceptions.h"
#include "changeLength1D.h"
#include
www.eeworm.com/read/274718/10857193
cpp 6_72.cpp
#include
#include
using namespace std;
void DispInfo( const string & );
int main()
{ string str; cout