//: C05:Class.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Similarity of struct and class
//背包类
class Knap
{
friend int Knapsack(int *a,int *b,int c, int d);
private :
int Bound(int i);
void Backtrack(int i);
int n;
int c; //背包容量
int *w; //物品重量组
int *p
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class class-schedule extends Frame {
public class-schedule() {
super("Java Training");
Image im =
//: C05:Class.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Similarity of struct and clas