#include <iostream.h>
#include<iomanip.h>
#include<string.h>
int min(int w,int c)
{int temp;
if (w<c) temp=w;
else
temp=c;
return temp;
}
int max(int w,int c)
{
int temp;
if (w>c) temp=w;
else
temp=c;
return temp;
}
void knapsack(int v[],int w[],int c,int n,int**m) //求最优值
{
int j
相关下载链接:
//download.csdn.net/download/haixishouwangzhe/2814475?utm_source=bbsseo