object
0-1背包 源代码
汇集 0-1背包 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
程序用vc++6.0编译,执行。 三个程序用不同方法,解决了背包问题。
// 这是使用应用程序向导生成的 VC++ // 应用程序项目的主项目文件。 #include "stdafx.h" #using #include using namespace std; //存储商品的名称、价值和…
Microsoft Developer Studio Workspace File, Format Version 6.00 # 警告: 不能编辑或删除该工作区文件! ##########################################…
# Microsoft Developer Studio Project File - Name="0-1背包问题" - Package Owner= # Microsoft Developer Studio Generated Build File, Fo…
Build Log --------------------Configuration: 0-1背包问题 - Win32 Debug-------------------- Command Lines Creating temporary fil…
#include #include #include #include int min(int w,int c) { int temp; if (wc) temp=w; else temp=c; retu…
#include using namespace std; class Knapsack{ public: Knapsack(double *pp,double *ww,int nn,double cc){ p = pp; …